Inheritance diagram for nipy.algorithms.statistics.models.nlsmodel:
Non-linear least squares model
Bases: nipy.algorithms.statistics.models.model.Model, nipy.externals.six.Iterator
Class representing a simple nonlinear least squares model.
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.
Get predicted values for design or self.design
Parameters: | design : None or array, optional
|
---|---|
Returns: | y_predicted : array
|