Choosing alternative interpolator in normsys
#1511
-
Dear experts, I wondered if there were a quick way to change the interpolator code in In general, can I ask whether there is a clear criterion I should follow in choosing the best interpolator code? Apologies for my ignorance. Thanks, Blaise |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Sorry, my bad. This was already answered pretty much here: in #1393. Sorry for the noise! |
Beta Was this translation helpful? Give feedback.
-
Hi, you can set the interpolation code when creating the model: workspace = pyhf.Workspace(spec)
model = workspace.model(
modifier_settings={
"normsys": {"interpcode": "code4"},
"histosys": {"interpcode": "code4p"},
}
) The codes are described in the HistFactory manual, and the There is no "best" interpolation mechanism in general, but the defaults have some continuity in the derivatives that can be useful. The interpolation mechanism is ultimately a modeling choice, and ideally the dependence on this choice is small. If you see some very large differences, there may also be something else contributing. |
Beta Was this translation helpful? Give feedback.
Sorry, my bad. This was already answered pretty much here: in #1393.
Sorry for the noise!