-
Notifications
You must be signed in to change notification settings - Fork 85
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
Expose minuit instance in fit #929
Comments
You can't get the optimizer used via |
That returns a |
I thin i'd rather provide APIs for the common information (eg the ctor of the minuit optimizer should be able to take on fine-grained global options pyhf.optimize.opt_minuit.minuit_optimizer(option1 = , option2 = ) what do you think @alexander-held ? |
An API to get the available information, like
Is this already possible now, or a goal? I have not managed so far to pass information to the Minuit instance through |
As of |
The updates in #951 and #988 cover most of what I can think of. The last related thing that would be convenient is support for propagating |
Given the outcome of scikit-hep/iminuit#466, I am not sure whether support for |
Description
A fit via
pyhf.infer.mle.fit()
with minuit backend currently does not offer access to the minuit instance to for further operations, e.g. access to the correlation matrix. It would be convenient to optionally return it.Is your feature request related to a problem? Please describe.
The provided
pyhf.infer.mle.fit()
can only be used for studies with limited scope, as important information such as parameter correlations are inaccessible.Describe the solution you'd like
A keyword argument to optionally return the minuit instance, similar to
return_uncertainties
. Alternatively, the correlation matrix might be returned directly, though the full minuit instance might be more convenient (e.g. for Minos errors).Describe alternatives you've considered
A user wanting more detailed control over the fit could implement it separately and not go through
infer
to bypass this limitation. This might be a good solution to prevent supporting every last use case (and will offer more detailed control over minuit, which might be desired).Relevant Issues and Pull Requests
#881
Additional context
none
The text was updated successfully, but these errors were encountered: