-
Notifications
You must be signed in to change notification settings - Fork 34
Allowing xtol and ftol stopping criteria in OptimisationController #1508
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
base: main
Are you sure you want to change the base?
Conversation
5fe02a3 to
6105472
Compare
|
@martinjrobins @chonlei @mirams can you have a look and see if this makes sense, before I add tests? |
| ## Unreleased | ||
|
|
||
| ### Added | ||
| - [#1508](https://github.com/pints-team/pints/pull/1508) Added a method `OptimisationController.set_max_unmoved_iterations` that allows methods to stop after 1 or more iterations with no significant movement in parameter space. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"unmoved/unchanged" is a bit vague and not immediately obvious to me in terms of whether it refers to xtol or ftol? unmoved parameters, unchanged objective?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree! But can't think of anything better that doesn't involve deprecating set_max_unchanged_iterations which is probably one of the most used methods of the controller class
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmmm, given all the different names that exist already, inventing another set that are pints specific doesn't seem great anyway - and even more so if they are vague!
|
Fine, we can just go with long names
|
Going to do this next week, merge it in, and do a new release that's compatible with latest numpy #1712 unless anyone has strong objections @mirams @martinjrobins @chonlei ? |
Closes #1502
set_max_unchanged_iterations(1, ftol)set_max_unmoved_iterations(1, xtol)