Assigned errors must be positive, in hypotest #1988
-
Dear pyhf members, pyhf.set_backend("JAX", pyhf.optimize.minuit_optimizer(maxiter=int(1e9), tolerance=10000000))
wspace = pyhf.Workspace(json.load(open("LH_CLs_{}.json".format(int(sys.argv[2])))))
model = wspace.model()
data = wspace.data(model)
result = pyhf.infer.hypotest(float(sys.argv[3]), data, model, return_expected_set=True)
retval = [result, float(sys.argv[2]), float(sys.argv[3])]
pickle.dump(retval, open("CLs_result_{}.pkl".format(int(sys.argv[1])), "wb")) I am getting the following user warning - after which the job goes into P.S. - I released the jobs on Condor, so I am hoping I will get results soon. Thank you ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Why is your tolerance very large? This seems wrong. |
Beta Was this translation helpful? Give feedback.
-
PR #1919 resolved Issue #1918 and will go into
$ python -m pip install -r requirements.txt |
Beta Was this translation helpful? Give feedback.
PR #1919 resolved Issue #1918 and will go into
pyhf
v0.7.0
. To avoid getting this warning during rumtime now withpyhf
v0.6.3
just useiminuit<2.12.2
. So assuming you're installingpyhf
v0.6.3
with theminuit
extra:$ python -m pip install -r requirements.txt