[SciPy-User] leastsq - output integer flag

Skipper Seabold jsseabold at gmail.com
Mon Jun 27 13:06:46 EDT 2011


On Mon, Jun 27, 2011 at 6:34 AM, Johannes Radinger
<johradinger at googlemail.com> wrote:
>
> 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?
>

If you give full_output = 1, I believe there will be message along
with the optimization flag.

> Is there any simple possiblity to get a measure for the accuracy of
> the fit/optimization, like the residuals etc.?
>

If you're interested in more goodness of fit statistics, etc. You
might want to check out statsmodels.

http://pypi.python.org/pypi/scikits.statsmodels
http://statsmodels.sourceforge.net/

(I'm about to update those docs)

Skipper



More information about the SciPy-User mailing list