LevMarLSQFitter¶
-
class
astropy.modeling.fitting.LevMarLSQFitter[source] [edit on github]¶ Bases:
objectLevenberg-Marquardt algorithm and least squares statistic.
Notes
The
fit_infodictionary contains the values returned byscipy.optimize.leastsqfor the most recent fit, including the values from theinfodictdictionary it returns. See thescipy.optimize.leastsqdocumentation for details on the meaning of these values. Note that thexreturn value is not included (as it is instead the parameter values of the returned model).Additionally, one additional element of
fit_infois computed whenever a model is fit, with the key ‘param_cov’. The corresponding value is the covariance matrix of the parameters as a 2D numpy array. The order of the matrix elements matches the order of the parameters in the fitted model (i.e., the same order asmodel.param_names).Attributes
fit_info (dict) The scipy.optimize.leastsqresult for the most recent fit (see notes).Attributes Summary
supported_constraintsThe constraint types supported by this fitter type. Methods Summary
__call__(model, x, y[, z, equivalencies])objective_function(fps, *args)Function to minimize. Attributes Documentation
-
supported_constraints= ['fixed', 'tied', 'bounds']¶ The constraint types supported by this fitter type.
Methods Documentation
-
__call__(model, x, y, z=None, equivalencies=None, **kwargs)[source] [edit on github]¶
-
objective_function(fps, *args)[source] [edit on github]¶ Function to minimize.
Parameters: fps : list
parameters returned by the fitter
args : list
[model, [weights], [input coordinates]]
-