Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch 100% normalization uncertainty modifiers #2379

Open
1 task done
alexander-held opened this issue Nov 15, 2023 · 0 comments
Open
1 task done

Catch 100% normalization uncertainty modifiers #2379

alexander-held opened this issue Nov 15, 2023 · 0 comments
Labels
feat/enhancement New feature or request needs-triage Needs a maintainer to categorize and assign user request Request coming form a pyhf user

Comments

@alexander-held
Copy link
Member

Summary

I somewhat frequently run into workspaces with 100% normalization systematics, which result in NaN yields and likelihoods in pyhf. They have modifiers that look like the following:

{
    "data": {
        "hi": 2.0,
        "lo": 0.0
    },
    "name": "some_name",
    "type": "normsys"
},

Extrapolation is not defined if the down variation is exactly zero, so fits with pyhf failing is not surprising. These workspaces usually were produced in ROOT, where they seem to work fine. There must be some protection to handle this case, I am not sure how it works.

In such cases it is not very obvious to users of pyhf where the problem lies. I think it would be good to catch this with an informative error message. It might also be good to investigate the ROOT treatment and possibly adopt it.

Additional Information

n/a

Code of Conduct

  • I agree to follow the Code of Conduct
@alexander-held alexander-held added feat/enhancement New feature or request needs-triage Needs a maintainer to categorize and assign labels Nov 15, 2023
@matthewfeickert matthewfeickert added the user request Request coming form a pyhf user label Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat/enhancement New feature or request needs-triage Needs a maintainer to categorize and assign user request Request coming form a pyhf user
Projects
None yet
Development

No branches or pull requests

2 participants