[SciPy-User] help with leastsq and fmin
Joses Ho
joses.ho at well.ox.ac.uk
Thu Sep 9 06:40:17 EDT 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
good.
Thanks,
Joses
More information about the SciPy-User
mailing list