[SciPy-User] Sum of squared errors in leastsq

Skipper Seabold jsseabold@gmail....
Fri Jun 29 11:14:45 CDT 2012

On Fri, Jun 29, 2012 at 11:36 AM, Jose Guzman <sjm.guzman@googlemail.com>wrote:

>  Dear Scipy users,
> I am trying to fit some data to different models with curve_fit. Does
> curve_fit or leastsq to return the sum of the squared errors or should I
> compute it manually*?
> Thanks a lot in advance!

I believe that curve_fit will compute the sum of squares of the residuals
given a function, xdata, and ydata. Leastsq assumes your function returns
the residuals.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20120629/bb95a7e6/attachment.html 

More information about the SciPy-User mailing list