-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Add array api support for jaccard score #31204
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
base: main
Are you sure you want to change the base?
Conversation
Some benchmarks data size = 1e7
|
CC: @ogrisel @betatim @adrinjalali for reviews. It seems like Pytorch CPU degrades the performance. |
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 the PR, @OmarManzoor!
Just one small nitpick from my side—otherwise, LGTM!
Edit: I forget we haven't checked with MPS. 😅
I guess we're okay that PyTorch CPU has a subpar implementation? |
I think so. Just to be clear I tested on a kaggle kernel which sometimes involves differing and conflicting versions of packages but I think that is the best we can get for publicly available free gpus. Since metrics do not involve too much computation using Pytorch with CPU doesn't really offer much benefit and we are better off with the original numpy implementation when we are using a CPU. But I think let's get an opinion from @ogrisel as well. |
Reference Issues/PRs
Towards #26024
What does this implement/fix? Explain your changes.
Any other comments?