Hi Matt,
I'm setting the max_nfev because my function evaluations used to take
very long, so I wanted to be sure that I'm not stuck for hours with
some data. But maybe it was also partially because I was fitting so
many parameters which did not change, so this finally caught that bug
in my code, thanks.
But I actually just wanted to know if it is intended behaviour that if
max_nfev is reached, then residual is not calculated? Because in your
commit
https://github.com/lmfit/lmfit-py/commit/98ec309cf7dbacba2e23185a3ddfbf1345251441
reaching max_nfev has become AbortFitException which is then treated
partially the same way as user abort, for which statistics are not
calculated, if I understand correctly.
The reason I'm asking is because in previous versions of lmfit
(0.9.15) reaching maximum number of evaluations did not have this
effect on the statistics calculation. So was it intended as an
improvement?
What this really shows to me is that it's too easy to use some code
wrong if there are no real consequences for using it wrong. A tiny
warning is easily ignored especially in automated data processing, but
the -inf in reduced chi square really got me to find the reason why
I'm reaching the max_nfev sometimes.
Thanks again for developing this great package and keep up the good
work even if the users are not always so great!
Kind regards,
Ulla
su 14. helmik. 2021 klo 0.10 Matt Newville
(
newv...@cars.uchicago.edu) kirjoitti:
> --
> You received this message because you are subscribed to the Google Groups "lmfit-py" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
lmfit-py+u...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/lmfit-py/CA%2B7ESbp%3DDBZjpaETLrmBhtXfCZUQ%2BsYi9Cm7DsSyDp6ysCQSpw%40mail.gmail.com.