[SciPy-User] Sum of squared errors in leastsq

Jose Guzman sjm.guzman@googlemail....
Fri Jun 29 10:36:01 CDT 2012

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!

val = np.array([mymodel(i, param) for i in xdata]-np.array(ydata))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20120629/850788af/attachment.html 

More information about the SciPy-User mailing list