Load model, without having "mu" parameter #1752
-
Dear pyhf community, I am processing the following lines for the mle fit -
At the moment, the code crashes when I try to load the model in this line - Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @ssaha1234, setting A more convenient method has been implemented after |
Beta Was this translation helpful? Give feedback.
Hi @ssaha1234, setting
mu
to a constant value of 0 will not be enough to avoid that crash I think. You would additionally need to keep some sample in the model on whichmu
acts. Sincemu
will be constant 0, that sample effectively does nothing and this should result in the model you are looking for I believe.A more convenient method has been implemented after
pyhf
version0.6.3
was released, see #1602 / #1636 / #1638. It allows you to set"poi": ""
in the config, or usewspace.model(poi_name=None)
for fits without POI. You can already usepoi_name=None
now (thanks to #950), however you will not get through model validation without the workaround shown at the bottom of #1602 (comment). Th…