Skip to content

Load model, without having "mu" parameter #1752

Answered by alexander-held
ssaha1234 asked this question in Q&A
Discussion options

You must be logged in to vote

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 which mu acts. Since mu 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 version 0.6.3 was released, see #1602 / #1636 / #1638. It allows you to set "poi": "" in the config, or use wspace.model(poi_name=None) for fits without POI. You can already use poi_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…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ssaha1234
Comment options

Answer selected by ssaha1234
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants