-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fix kwargs in PDHG #2010
Fix kwargs in PDHG #2010
Conversation
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.
Sounds like current master defaults to check_convergence being False (as you say it throws an error if its passed)? I would choose the default that preserves current behaviour rather than breaking backward compatability
The current approach runs it as default, but I think you can't turn it off as passing |
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.
No worries if docs suggestions are out of scope - my main concern is the update_objective_interval
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.
can confirm the todo is gone!
Let's go 🥳
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.
looks good!
Changes
check_convergence
was a kwarg that, if passed, was then passed to the algorithm parent class which raised an error because it wasn't recognisedtheta
kwarg because, if passed, it was then passed to the algorithm parent class which raised an error because it wasn't recognisedDiscussed with Gemma and agreed to pop these kwargs before passing to the parent class
It is still open to me whether
check_convergence
should default to True or False. In the original issue, I claimed it should be False by default, but now I am not so sure. Mathematical convergence does not guarantee that it converges computationally in any reasonable time frame, and we know that we can get good (and sometimes quicker) solutions outside the mathematical convergence guarantees.We decided to default to True to match with the docstring.
Testing you performed
Related issues/links
Closes #1965
Checklist
Contribution Notes
Please read and adhere to the developer guide and local patterns and conventions.