-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
least_squares cost tolerance #12291
Comments
Hi! No there isn't currently. I understand your issue, but as it is not standard thing for least squares minimization (see http://ceres-solver.org/nnls_solving.html#solver-options for example) it wasn't implemented. How would you go about implementing such criterion? |
Here is the reason why I think that a tolerance on the cost would be nice. Since
This could terminate the while loop and stop the iterations when cost is within a cost tolerance. |
Need to decide on one thing - how to implement interaction between Also 'lm' won't support Do you want to implement this feature? I will help reviewing and maybe give some tips if necessary. |
I think this is a great idea to separate |
Oops, mis-click. |
Is there a way to specify a tolerance on the cost rather than ftol/gtol/xtol?
When using least_square to find multivariate, bounded roots (please suggest alternatives if it exists in scipy.optimize), I find that sometimes, it may be easier to terminate when the cost function is small (say 1E-3) than when ftol / gtol / xtol is small.
The text was updated successfully, but these errors were encountered: