-
-
Notifications
You must be signed in to change notification settings - Fork 26k
MAINT sync lobpcg with SciPy main #25176
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
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.
Assuming everything goes well with respect to the scikit-learn test suite, +1 for the sync on my side.
OK, so we trigger the error seen in the |
Co-authored-by: Olivier Grisel <[email protected]>
if "subset_by_index" in inspect.signature(eigh).parameters: | ||
# scipy >= 1.5 | ||
additional_params = {"subset_by_index": eigvals} | ||
else: | ||
# deprecated in scipy == 1.10 | ||
additional_params = {"eigvals": eigvals} |
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.
I added this change here. Since it is in a try ... except ...
the error could be hidden because we don't pass the right parameter. I assume that we never trigger this part in our test suite.
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.
I tweaked a comment to say that the code is taken from v1.10 (or rather main
but I guess scipy 1.10 will be released in the near future since 1.10.rc1 was released two days ago)
Co-authored-by: Olivier Grisel <[email protected]> Co-authored-by: Loïc Estève <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]> Co-authored-by: Loïc Estève <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]> Co-authored-by: Loïc Estève <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]> Co-authored-by: Loïc Estève <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]> Co-authored-by: Loïc Estève <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]> Co-authored-by: Loïc Estève <[email protected]>
Before addressing the issue of the
eigvals
deprecation ineigh
function, I think that we should update thelobpcg
function.