Closed APMDSLHC closed 1 year ago
Hi @APMDSLHC this is actually a bug, good catch thanks will fix it on Monday!
Hi @APMDSLHC, this should be fixed now. Please let me know if it gives you the same error. you can turn this feature off by setting ntrials=0
.
Thanks it fixed the issue. I now have a bunch of warning messages, but I guess that's what you want.
Hi @APMDSLHC you should be getting warning about why optimiser failed and it should sayspey::Expanding the bounds.
if you are getting something else could you let me know? thanks
Hi @APMDSLHC you should be getting warning about why optimiser failed and it should sayspey::Expanding the bounds.
if you are getting something else could you let me know? thanks
Yes that's the warning I get:
RuntimeWarning: Inequality constraints incompatible
spey::Expanding the bounds.
System Settings
Fedora Linux 35 python v.3.9.12 spey commit 872edff
Describe the bug
When I try to compute the likelihood with a 1 SR model with absurdly high number of observed yields I get the following error:
I did not really dig up the reason of the error and if it can actually happen in a realistic case, but in doubt I share it with you. I also tried to reasonably change the bounds of the model (i.e. order of magnitude 100) but it didn't work.
The error shows up for both simplified_likelihoods and pyhf backends.
To Reproduce
Expected behaviour
A likelihood of 0.
Additional information
No response