Skip to content

Using Scipy optimiser (for ranking and limits) #413

Open
@MarcelHoh

Description

@MarcelHoh

In my experience using scipy as the minimiser is significantly faster than minuit. This can be very useful when the uncertainty of each parameter is not needed such as limit setting and ranking parameters.

Within cabinetry the cabinetry.fit.._fit_model function always overrides the set minimizer in pyhf to be minuit. This makes the ranking and limits quite a bit slower than they need to be. For the ranking only the first fit, with no fixed nuisance parameters, should need to use minuit as the optimiser.

Would it be possible to make the default switch to minuit an option in cabinetry.fit._fit_model? This would allow for always using minuit if the user desires but also to switch to scipy for all cases where the uncertainty is not needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions