-
Notifications
You must be signed in to change notification settings - Fork 85
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
feat: Add autoscan for upper limit using TOMS Algorithm 748 #1274
Conversation
A few more ideas that might be out of scope for this implementation:
|
Co-authored-by: Giordon Stark <[email protected]>
Codecov ReportBase: 98.28% // Head: 98.29% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #1274 +/- ##
==========================================
+ Coverage 98.28% 98.29% +0.01%
==========================================
Files 68 69 +1
Lines 4482 4529 +47
Branches 730 738 +8
==========================================
+ Hits 4405 4452 +47
Misses 45 45
Partials 32 32
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
I think this should be ready for formal review now. |
Thanks very much @beojan. We have a few other PRs that we're trying to prioritize for the |
I'm unsure as to what is causing Issue #2015, as I'm not able to reproduce it at all locally, but I can reproduce it in CI, but only on branches that contain the commits in this PR. :? @kratsg @lukasheinrich any thoughts here are welcome. |
Try to force it by manually setting jax backend
6e59790
to
f36f6fa
Compare
f36f6fa
to
798eab7
Compare
PR #2017 will fix this, so after it is merged in and the |
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.
Perhaps dropping the explicit set_backend
calls?
@kratsg We can, though is the idea here that this avoids people focusing too much on NumPy? The main reason I've been putting those into examples is that I wanted the output tensor format to be made explicitly clear in advance. Though would you recommend not doing that now that we have the default backend machinery? (I'm going to go offline now, so I'll defer to you here.) |
It's cleaner since we might change default backend later. Or if we drop numpy later (doubt it) but I'm fine with it as it is. I don't think we set backend explicitly in most other tests. |
* Update scipy lower bound to v1.2.0 to match lower bound in setup.cfg. - Amends PR #1274
Description
Resolves #1265
This PR uses SciPy's TOMS748 implementation to autoscan for the upper limit. @alexander-held's suggestions about memoizing the objective function and determining the best brackets for each band have been implemented.
ReadTheDocs build: https://pyhf--1274.org.readthedocs.build/en/1274/api.html#confidence-intervals
Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: