-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Manually set uncertainties for fixed parameters to 0 (#1919)
* Manually set the uncertainties for fixed parameters to zero after minimization, and remove setting the uncertainty/step_sizes during minimization, to avoid warnings from iminuit. For iminuit v2.12.2+ "assigning zero to errors is invalid, but in the past this was not caught." This approach harmonizes with cabinetry for fixed parameters for iminuit v2.12.2+. - c.f. scikit-hep/iminuit#762 - c.f. scikit-hep/cabinetry#346 - c.f. https://iminuit.readthedocs.io/en/stable/changelog.html#july-15-2022 > fix a bug in error heuristic when parameters have negative values and prevent > assigning negative values to errors * Remove tests/test_optim.py test_step_sizes_fixed_parameters_minuit as the uncertainties/step sizes values are no longer set during minimization and so are no longer in pyhf's control.
- Loading branch information
1 parent
a4d5154
commit 355982a
Showing
3 changed files
with
12 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters