-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
FIX: tol in _spectral_embedding.py #21194
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
Conversation
Fix the typo in tol from -15 to -5
Would it be possible to add a non regression test inspired by #21147 but using a small synthetic dataset? |
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.
LGTM since the existing tests do not fail. It would be great to have a new non-regression test as explained above but I would not hold the merge of this PR for this if it's too complex to craft such a non-regression test (given the fact that it should also be fast to run, ideally in less than 100ms).
We also need an entry for the changelog targeting 1.0.1 (in |
Added info on #21194
A unit test added
moved for the proper order
wrong file edited! Back to the original
@ogrisel - It's difficult to make a direct unit test without using that specific matrix presented in the original file, since the example needs to reproduce the logic where the default solver, |
+1 for new issues to analyse the bugs you found while trying to work on a new test. |
SpectralClustering breaks on small-size low-rank data #21274 |
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.
LGTM. Thank you for your involvement in the project with this contribution and with on-going others, @lobpcg! 👍
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.
LGTM
Fix the typo in tol from -15 to -5, making it consistent with other calls of lobpcg here.
Reference Issues/PRs
Fixes #21147
What does this implement/fix? Explain your changes.
Excessively small tol in lobpcg not only makes it unnecessary slower, increasing the number of iterations for no good reason, but can also make it fail due to numerical instabilities, as found in #21147
Any other comments?