Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APFitter using deprecated optimization module #301

Open
jdtsmith opened this issue Nov 30, 2024 · 0 comments
Open

APFitter using deprecated optimization module #301

jdtsmith opened this issue Nov 30, 2024 · 0 comments

Comments

@jdtsmith
Copy link
Contributor

Note from astropy.modeling:

Note that the :class:~astropy.modeling.fitting.LevMarLSQFitter fitter, which uses the Levenberg-Marquardt algorithm via the scipy legacy function scipy.optimize.leastsq, is no longer recommended. This fitter supports parameter bounds via an unsophisticated min/max condition whereby during each step of the fitting, parameters that are out of bounds are simply reset to the min or max of the bounds. This can cause parameters to "stick" to one of the bounds if during the fitting process the parameter gets close to the bound. If the models you are fitting make use of bounds, you should make use of one of the other fitters...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant