curvefit.models.base.Model
Base model
The base model; must be subclassed. See CoreModel
.
Methods
get_data
Returns the DataInputs
object that was used to fit the model; or None.
erase_data
Get rid of the current data in the model.
detach_data
Get rid of the current data in the model but return them from the function.
gradient
Returns the gradient function using a complex step
based on some current variable values x
and DataInputs
.
x (np.array)
: an array of variable values that can be converted to parametersdata (Tuple[pd.DataFrame, DataSpecs])
: the input data frame to be fit, and data specifications object