-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
MNT remove take
fn in array_api wrapper
#27939
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
MNT remove take
fn in array_api wrapper
#27939
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.
Since the array api support is still experimental, I assume that we can expect our users to always use the latest version of the array-api-compat
soft dependency. Therefore I assume that this kind of change is fine as long as all existing tests pass.
Could you please confirm that it works with pytorch and cupy on a CUDA host?
/cc @thomasjpfan |
|
Let's open a dedicated PR to be able to merge those two simplication independently in case of one is breaking tests but not the other. |
That's also my thoughts.
Tests OK. The relevant tests are the tests for PCA, it's where With cupy
With pytorch
ok |
It cannot, it must at least be implemented for |
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.
Thanks for posting the test results. Still +1 for merge this PR in its current state.
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
A late comment: the Or was your comment more about the minimum version of |
The Array API is versionned. |
What does this implement/fix? Explain your changes.
Only a bit of cleaning, this method is no more needed since
take
has been adopted by the Array API standard.Any other comments?
The only place where
xp.take
is used is insklearn.utils.extmath.svd_flip
.