Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

optimize.curve_fit uses different nomenclature from optimize.leastsq #3172

Closed
alchemyst opened this Issue · 1 comment

2 participants

@alchemyst

The curve_fit help uses N for the number of data points and M for the number of parameters, but then calls leastsq which has these reversed. This makes some of the error messages harder to understand.

I suggest simply swapping N and M in the curve_fit help.

@rgommers
Owner

Would make sense that these two functions have consistent docs. Changing the curve_fit docstring should be straightforward.

@alchemyst alchemyst referenced this issue from a commit in alchemyst/scipy
@alchemyst alchemyst DOC: make curve_fit nomenclature same as leastsq
The curve_fit help used N for the number of data points and M for the number of parameters, but lasts which has these reversed. Fixes issue #3172
848dea0
@rgommers rgommers closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.