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. If there is an entry ‘migrad_opts’, those options will be passed toiminuit.Minuit.migrad()
.
Returns: - result : (factors, info, optimizer)
Tuple containing the best fit factors, some info and the optimizer instance.
- parameters :