Bases: object
A class performing a linear least square fitting.
Uses numpy.linalg.lstsq to do the fitting. Given a model and data, fits the model to the data and changes the model’s parameters. Keeps a dictionary of auxiliary fitting information.
Attributes Summary
supported_constraints | list() -> new empty list |
Methods Summary
__call__(model, x, y[, z, weights, rcond]) | Fit data to this model. |
Attributes Documentation
Methods Documentation
Fit data to this model.
Parameters: | model : FittableModel
x : array
y : array
z : array (optional)
weights : array (optional)
rcond : float, optional
|
---|---|
Returns: | model_copy : FittableModel
|