Skip to content

Conditional fits with fixed non-POI parameters #1603

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

You must be logged in to vote

The infer.mle.fit API takes a list of initial parameter values and a list of booleans to denote whether a given parameter is meant to be held constant. If it is set to constant, it will take the initial parameter value. So you can use model.config.par_names to identify the position in the list of parameters that a given parameter you want to hold constant is located at, then use model.config.suggested_init() and model.config.suggested_fixed() to get the default settings for initial values / fixed parameters, edit these lists as desired (parameter order matches model.config.par_names), and pass the new lists to infer.mle.fit while using the init_pars and fixed_params keyword arguments.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by balunas
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