[SciPy-Dev] optimize: what should happen if objective functions return non-finite numbers?
Pauli Virtanen
pav at iki.fi
Wed Jun 15 15:02:37 EDT 2016
Wed, 15 Jun 2016 18:53:22 +0000, Pauli Virtanen kirjoitti:
[clip]
> I think this is a different issue --- the only way curve_fit
> communicates fit failures in general is via setting the estimated
> covariances to infinity. This is not so convenient, but that's how it
> works currently.
Sorry, this was wrong --- it's supposed to raise a RuntimeError, iow.,
works differently from minimize().
However, nan values confuse leastsq() to think it converged --- this can
and should be fixed.
More information about the SciPy-Dev
mailing list