Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

optimize_iminuit

gammapy.utils.fitting.optimize_iminuit(parameters, function, **kwargs)[source]

iminuit optimization

Parameters:

parameters : Parameters

Parameters with starting values

function : callable

Likelihood function

**kwargs : dict

Options passed to iminuit.Minuit constructor

Returns:

result : (factors, info, optimizer)

Tuple containing the best fit factors, some info and the optimizer instance.