-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add order statistics checks #72
Conversation
Hello @mj-will! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2021-02-11 15:14:02 UTC |
This is currently missing the Bonferroni correction for multiple testing that is used in the paper to combine the rolling p-values |
@mj-will Is this ready to merge? I see that you were changing some internal arrays of samples - is that necessary? |
@johnveitch, I'll need to take another look at this. I had to change things to avoid sorting the samples every time a new live point is inserted. It's correctly implemented in FlowProposal but there a small differences here because of the multiple threads. |
@mj-will Could you take a look at the conflicts? They don't seem too difficult to solve and it'd be good to get this merged in. |
@johnveitch sure thing. Other than the conflicts I think there was an issue with how it computed the indices when using more than 1 thread. I'll try to look into it over the next week. |
There are few things left that I think need to be done before merging this:
Let me know if anything else comes to mind. |
@johnveitch I think this is ready to merge, excluding any changes you'd like made. I've compared results between the tests before and after these changes and I can't see any obvious issues but it's probably worth double-checking. There are two points in my previous comment that could easily be changed:
Let me know what you think. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mj-will I had a look at your changes and they seem ok to me. I have a question:
how much does it help not having to sort the live points at each step?
Also, while i think this can be merged, I will bounce this to @johnveitch for the final approval.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi @wdpozzo, when running the scripts in |
Hi @mj-will, thank you. I am going to port your PR also to the rework branch, where the live points are managed differently and the increase in performance should become more apparent. |
@mj-will I incorporated your pull request in the rework branch and it seems to give a bit of improvement indeed. I think I got it right, but if you feel like, please check that branch out. |
Add the nested sampling cross-checks using order statistics that are described in: https://arxiv.org/abs/2006.03371
The test checks if the distribution of indices of each newly inserted live point with respect to the existing live points is uniform using the likelihood as the ordering criteria and produces a KS-statistic and p-value.