[SciPy-User] leastsq - output integer flag
Christian K.
ckkart at hoc.net
Mon Jun 27 14:06:51 EDT 2011
Am 27.06.11 12:34, schrieb Johannes Radinger:
> Hello,
>
> i am using leastsq to optimize a function. Beside the fitted output
> variables also an integer flag
> (number 1-4) is returned.
> What do the numbers acutally mean?
>
> Is there any simple possiblity to get a measure for the accuracy of
> the fit/optimization, like the residuals etc.?
Have a look at scipy.odr. It does plain leastsq optimization too and has
lots of convenient outputs like standard error of the parameters,
covariance matrix, variance of residual, etc.
Christian
More information about the SciPy-User
mailing list