Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
optimize.curve_fit uses different nomenclature from optimize.leastsq #3172
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.