sigma=None
with absolute_sigma=True
in scipy.optimize.curve_fit()
unsenseful
#12584
Labels
sigma=None
with absolute_sigma=True
in scipy.optimize.curve_fit()
unsenseful
#12584
Leaving
sigma=None
and puttingabsolute_sigma=True
inscipy.optimize.curve_fit()
still gives an output, which potentially entails wrongly interpreted results because in this very case a) the weighting is defaulted to unity and b) the optionabsolute_sigma=True
makesscipy.optimize.curve_fit()
think the real errors are all ones. The correct output would be only given bycurve_fit(func, x_data, y_data)
withabsolute_sigma=False
which is the default already and the covariance matrix being scaled as already implemented.Inserting the following query here https://github.com/scipy/scipy/blob/v1.5.1/scipy/optimize/minpack.py#L766 in
scipy.optimize.curve_fit()
would avoid a wrong unintend use:and in the docstring:
Reproducing code example:
Error message:
Scipy/Numpy/Python version information:
The text was updated successfully, but these errors were encountered: