simplify the normalization in gpdfit#187
Conversation
|
@sethaxen Is this taken from some of the changes I made while writing ParetoSmooth.jl, or is it a separate performance improvement I should add to ParetoSmooth myself? (I keep forgetting what all the weird little |
|
@ParadaCarleton no, this isn't from ParetoSmooth.jl. If the improvement isn't in there, it should be. |
|
This looks good, thanks! I need to investigate why the Windows checks are failing but haven't had a chance yet. I'm guessing it's unrelated to this PR, but want to double check before merging. |
|
The windows test failure is happening here: loo/tests/testthat/test_loo_and_waic.R Lines 123 to 127 in bffab8c the error message in the github actions log says that the error occurs because the objects are "equal but not identical". This usually means that the value is the same but some attribute differs, but I can't think of any reason how this PR could cause that. Does anyone have access to a windows machine? If so could you try running this one test locally? |
Codecov Report
@@ Coverage Diff @@
## master #187 +/- ##
==========================================
- Coverage 95.15% 95.15% -0.01%
==========================================
Files 28 28
Lines 2663 2662 -1
==========================================
- Hits 2534 2533 -1
Misses 129 129
Continue to review full report at Codecov.
|
|
reminder to self: @mike-lawrence nicely offered remote access to a windows machine, so remember to take him up on that offer |
|
Ok so it's now passing on Windows despite us not changing anything. The only thing I did was wait a few weeks and rerun the github actions workflow. Anyway, I think we can go ahead and merge this. |
Seth Axen pointed out that
Is doing normalization in O(n^2), while it can be simplified to O(n) and also made more stable as