prepare_fit¶
-
SeparableModelResult.prepare_fit(params=None) Prepare parameters for fitting.
Prepares and initializes model and Parameters for subsequent fitting. This routine prepares the conversion of
Parametersinto fit variables, organizes parameter bounds, and parses, “compiles” and checks constrain expressions. The method also creates and returns a new instance of aMinimizerResultobject that contains the copy of the Parameters that will actually be varied in the fit.Parameters: params ( Parameters, optional) – Contains the Parameters for the model; if None, then the Parameters used to initialize the Minimizer object are used.Returns: Return type: MinimizerResultNotes
This method is called directly by the fitting methods, and it is generally not necessary to call this function explicitly.
Changed in version 0.9.0: Return value changed to
MinimizerResult.