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

Checking for non-descent direction in qN #361

Merged
merged 3 commits into from
Mar 3, 2024
Merged

Conversation

mateuszbaran
Copy link
Member

A slightly generalized check originally proposed in #339 . Ideally we would also have an option that purges the memory but that's fairly difficult to do in Manopt. This change may be a little difficult to test.

@mateuszbaran mateuszbaran added the Ready-for-Review A label for pull requests that are feature-ready label Mar 1, 2024
Copy link

codecov bot commented Mar 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.73%. Comparing base (5253f86) to head (92d47b1).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #361      +/-   ##
==========================================
+ Coverage   99.58%   99.73%   +0.14%     
==========================================
  Files          73       73              
  Lines        6801     6805       +4     
==========================================
+ Hits         6773     6787      +14     
+ Misses         28       18      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kellertuer
Copy link
Member

That is a very neat idea. I have to check how to best test that, maybe starting it with -grad for one test?

Also for the warning, I usually did more like message passing and / or have specific debug to catch warnings. I can think a bit what best to do here with that, maybe the warning is also ok.

@mateuszbaran
Copy link
Member Author

I'm trying to add a test by defining a custom struct QuasiNewtonGradientDirectionUpdate <: AbstractQuasiNewtonDirectionUpdate end that returns gradient as the direction.

Copy link
Member

@kellertuer kellertuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think my only remark would be that this changes the default. (:ignore was the default before), but this could also be seen as an enhancement.

We could merge this the next few days together with the typo PR as a new version then :)

@mateuszbaran
Copy link
Member Author

I think my only remark would be that this changes the default. (:ignore was the default before), but this could also be seen as an enhancement.

Yes, I think this is an enhancement. It adds a bit of additional cost for checking but I think it's worth it.

We could merge this the next few days together with the typo PR as a new version then :)

Sure, that's fine.

@kellertuer kellertuer merged commit 20d82e3 into master Mar 3, 2024
15 checks passed
@kellertuer kellertuer deleted the mbaran/safer-step-qn branch May 4, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready-for-Review A label for pull requests that are feature-ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants