Skip to content

Changing histosys interpolation codes #1393

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

You must be logged in to vote

You can set them when creating the model, example:

workspace = pyhf.Workspace(spec)
model = workspace.model(
    modifier_settings={"normsys": {"interpcode": "code4"}, "histosys": {"interpcode": "code4p"}}
)

These are the default settings.

The available interpolations are "code0", "code1", "code2", "code4", "code4p". I did not see this documented in the pyhf.Model documentation or under _ModelConfig, so it might be a good idea to add it there (or maybe under Interpolators).

Replies: 1 comment 1 reply

Comment options

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

Answer selected by iokarkan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants