[SciPy-User] help with leastsq and fmin

Joses Ho joses.ho@well.ox.ac...
Thu Sep 9 05:40:17 CDT 2010

 <josef.pktd <at> gmail.com> writes:
> leastsq wants the array of error terms
> fmin wants the final value of the objective
> So we cannot use the same function directly in leastsq and fmin.
> I usually get this kind of exception when I forget this.
> Josef

Hi Josef,

Thanks for your advice below. I re-implemented your suggestions, 
and it seems both leastsq and fmin give 
the same optimized parameters. 

I then re-checked the published fit, and my leastsq fit gives 
slightly better results! So I think my method is 


More information about the SciPy-User mailing list