-
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
Fix: bug in benchmark tests #280
Fix: bug in benchmark tests #280
Conversation
Thanks for getting this, @kratsg.
Now that I think about it |
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
975805b
to
94b6e8e
Compare
This reverts commit cbb899f.
0cc08fe
to
5f371ea
Compare
rebased against #268 to prepare |
fafe676
into
feature/use-distributions-in-ML-backends-for-better-poisson
* Effectively reverts most of PR #1001 and PR #280, reapplies most of PR #277 * Use scipy.special.xlogy in Poisson computation for numpy backend and use jax.scipy.special.xlogy for jax backend * Set minimum required PyTorch to v1.10 for API stability - c.f. pytorch/pytorch#61511 in torch v1.10.0 * Set minimum required TensorFlow to v2.3.1 and TensorFlow Probability to v0.11.0 - tfp v0.11.0 supports zero rate Poisson and requires tensorflow>=2.3.0 * Add note to docs that limit Poisson(n = 0 | lambda -> 0) = 1 is being used * Update tests to use limit Poisson(n = 0 | lambda -> 0) = 1 result * Run doctest on only the latest Python release Co-authored-by: Ruggero Turra <giurrero@gmail.com>
Description
The benchmark tests were not running because of forgetting to
pip install minuit
dependency. This was introduced through #276 which imports the minuit optimizer intests/conftest.py
which raises the exception.This also reverts the unfortunate regression introduced by #277 as we don't have equivalent methods to return
0
for the other backends, and whether thepoisson
forlambda=0
should return 0 orNaN
is probably not well-defined? (correct me if I'm wrong).Checklist Before Requesting Approver