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

Fix Initial condition on Lanczos #391

Merged
merged 4 commits into from
Jun 6, 2024
Merged

Conversation

kellertuer
Copy link
Member

@kellertuer kellertuer commented Jun 4, 2024

If you start Lacnzos directly in a mnimizer, the first closed form solution yields NaNs. This is now fixed by checking this in the first order condition (which also does not make sense when we are exactly at a minimiser).

This fixes #390.

🛣️ Roadmap

  • maybe add a test for this.

Copy link

codecov bot commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.76%. Comparing base (e97d0c0) to head (bcc0ec6).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #391   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files          71       71           
  Lines        7221     7224    +3     
=======================================
+ Hits         7204     7207    +3     
  Misses         17       17           

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

kellertuer and others added 2 commits June 4, 2024 18:26
Co-authored-by: Vaibhav Kumar Dixit <vaibhavyashdixit@gmail.com>
1. make them not using a random matrix but a nice one we can even use the minimizer of
2. test that even if the gradient is _exactly_ zero Lanczos does no longer fail.
@kellertuer kellertuer changed the title Fix Initial condition on Lacnzos Fix Initial condition on Lanczos Jun 4, 2024
@kellertuer kellertuer added the Ready-for-Review A label for pull requests that are feature-ready label Jun 5, 2024
@kellertuer kellertuer merged commit 2a7cc0d into master Jun 6, 2024
15 checks passed
@kellertuer kellertuer deleted the kellertuer/fix-Lanczos branch June 28, 2024 18:25
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.

Lanczos initial value shouldn't be zero
3 participants