_ModelConfig¶
-
class
pyhf.pdf.
_ModelConfig
(spec, **config_kwargs)[source]¶ Bases:
pyhf.mixins._ChannelSummaryMixin
-
__init__
(spec, **config_kwargs)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
-
suggested_fixed
()[source]¶ Identify the fixed parameters in the model.
- Returns
A list of booleans,
True
for fixed andFalse
for not fixed.- Return type
List
Something like the following to build fixed_vals appropriately:
fixed_pars = pdf.config.suggested_fixed() inits = pdf.config.suggested_init() fixed_vals = [ (index, init) for index, (init, is_fixed) in enumerate(zip(inits, fixed_pars)) if is_fixed ]
-