Inheritance diagram for nipy.algorithms.statistics.models.nlsmodel:
Non-linear least squares model
Bases: nipy.algorithms.statistics.models.model.Model
Class representing a simple nonlinear least squares model.
Methods
SSE() | Sum of squares error. |
fit() | Fit a model to data. |
getZ() | Set Z into self |
getomega() | Set omega into self |
initialize() | Initialize (possibly re-initialize) a Model instance. For |
next() | Do an iteration of fit |
predict([design]) | Get predicted values for design or self.design |
Initialize non-linear model instance
Parameters : | Y : ndarray
design : ndarray
f : callable
grad : callable
niter : int
|
---|
Sum of squares error.
Returns : | sse: float :
|
---|
Fit a model to data.
Set Z into self
Returns : | None : |
---|
Set omega into self
Returns : | None : |
---|
Initialize (possibly re-initialize) a Model instance. For instance, the design matrix of a linear model may change and some things must be recomputed.
Do an iteration of fit
Returns : | None : |
---|
Get predicted values for design or self.design
Parameters : | design : None or array
|
---|---|
Returns : | y_predicted : array
|