-
Notifications
You must be signed in to change notification settings - Fork 41
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
Introduced an entry change stopping criterion and generalise the gradient norm SC. #345
Conversation
Check that we change the PSO stopping criterion accordingly (and not overwrite iterate change)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #345 +/- ##
==========================================
- Coverage 99.78% 99.62% -0.16%
==========================================
Files 69 69
Lines 6380 6398 +18
==========================================
+ Hits 6366 6374 +8
- Misses 14 24 +10 ☔ View full report in Codecov by Sentry. |
The decrease per patch is just the 10 lines of Strong Wolfe again that depending on the randomness in the tests sometimes are not reached. So this is ready to 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.
A few minor comments.
BTW, yes, this is enough to represent the inf norm criterion 👍 |
Co-authored-by: Mateusz Baran <[email protected]>
Nice! I had hoped so – and feel this is nicer than coming up with a new criterion (which might mean coming up with new crieria for other norms later as well, and then it gets too crowded). Just took me a while to see this relatively simple solution. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mateusz Baran <[email protected]>
HM I just saw that you had one fix to just compute some norm only once, but it seems to have broken formatting and tests. Will check this only after my lecture and some meetings somewhen in the late afternoon. |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
I've fixed tests and formatting. |
Great thanks. Is the discussion above clarified and with that this PR ready to merge? |
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.
Yes, everything is fine.
…nifolds/Manopt.jl into kellertuer/new-stopping-criteria
This PR
StopWhenEntryChangeLess
stopping criterionStopWhenGradientNormLess
to accept arbitrary norm functions. Can you check, @mateuszbaran, whether that includes your InfNorm one? I think this way it is much nicer to introduce different Norm-possibilities.