You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are a few different things available in a model.config for accessing parameters:
model.config.parameters for an alphabetically sorted, non-expanded (staterror/shaperror) list,
model.config.par_order for a non-expanded list in the order that pyhf uses internally when handling and returning parameters,
model.config.par_names() for an expanded version of the list in the order used internally.
Only par_names() shows up in the _ModelConfig documentation at the moment. parameters presumably comes from the _ChannelSummaryMixin mixin, but I do not see this class in the documentation (if that was there, clicking through to it from the _ModelConfig page could be a convenient way to find additional properties coming from the base class).
model.config.parameters may not be that commonly needed, and could be obtained from model.config.par_order. The latter is very useful when using model.config.param_set().
See also #1024 for a few more points related to parameters vs par_order.
Summary
There are a few different things available in a
model.config
for accessing parameters:model.config.parameters
for an alphabetically sorted, non-expanded (staterror/shaperror) list,model.config.par_order
for a non-expanded list in the order thatpyhf
uses internally when handling and returning parameters,model.config.par_names()
for an expanded version of the list in the order used internally.Only
par_names()
shows up in the_ModelConfig
documentation at the moment.parameters
presumably comes from the_ChannelSummaryMixin
mixin, but I do not see this class in the documentation (if that was there, clicking through to it from the_ModelConfig
page could be a convenient way to find additional properties coming from the base class).model.config.parameters
may not be that commonly needed, and could be obtained frommodel.config.par_order
. The latter is very useful when usingmodel.config.param_set()
.See also #1024 for a few more points related to
parameters
vspar_order
.Documentation Page Link
https://pyhf.readthedocs.io/en/v0.6.3/_generated/pyhf.pdf._ModelConfig.html
Code of Conduct
The text was updated successfully, but these errors were encountered: