Open Ga0l opened 4 years ago
We'll have to follow up more on this given that if you add after the model
definition
import numpy as np
for test_mu in np.arange(7).tolist():
print(f"test_mu: {test_mu}")
result = pyhf.infer.hypotest(
test_mu, workspace.data(model), model, qtilde=True, return_expected=False
)
print(result)
and then run the output is
$ python example.py
test_mu: 0
tensor(nan)
test_mu: 1
tensor(0.8648)
test_mu: 2
tensor(0.7694)
test_mu: 3
tensor(0.6993)
test_mu: 4
tensor(0.6450)
test_mu: 5
tensor(0.5938)
test_mu: 6
and then it gets caught up on test_mu=6
. I suspect that this has more to do with the scaling of the model then anything else, but we can follow up more.
Description
Using
BkgOnly.json
provided with ATLAS-SUSY-2019-08 analysis, it seemspyhf.infer.hypotest
doesn't converge and runs indefinitely.Expected Behavior
hypotest
should return a resultActual Behavior
hypotest
runs indefinitely. However, downgrading to pyhf v0.4.4 solves the problem.Steps to Reproduce
The following code with the last development version of pyhf should reproduce the problem
downgrading pyhf with
python -m pip install --user pyhf==0.4.4
solves the issueChecklist
python -m pip install --ignore-installed -U --user "git+https://github.com/scikit-hep/pyhf.git#egg=pyhf[torch]"