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 | |
| fit | |
| getZ | |
| getomega | |
| initialize | |
| next | |
| predict |
Initialize non-linear model instance
| Parameters : | Y : ndarray
design : ndarray
f : callable
grad : callable
theta : array
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, optional
|
|---|---|
| Returns : | y_predicted : array
|