-
Dear pyhf developers, while inspecting model objects, I realised that the list of parameters is provided in 2 different ways:
The two lists are ordered differently. Also there is model.config.par_names() which is similar to model.config.order , but indicates nuisance parameter groups (e.g. staterrors). Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Related issue for clarifying the distinction in the documentation: #1747 |
Beta Was this translation helpful? Give feedback.
-
To give a (naive) rationale, as I suspect this was my doing. I wanted attributes on various models that were "consistent" regardless of the ordering of lists in the JSON. The minor thing about JSON is that you can argue that samples with modifiers In this case, while the This is also why there are utilities such as |
Beta Was this translation helpful? Give feedback.
To give a (naive) rationale, as I suspect this was my doing. I wanted attributes on various models that were "consistent" regardless of the ordering of lists in the JSON. The minor thing about JSON is that you can argue that samples with modifiers
[mod1,mod2]
and[mod2,mod1]
are equivalent. For us, the order in which modifiers (or samples, or channels) are specified should not impact or change anything about the built model.In this case, while the
par_order
differs (because the order of parameters is what determines the order of the underlying binning - and similarly for order of samples/channels for groups of bins), that means that the ordering differs between two identical models... bu…