-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ENH Use Array API in mean_tweedie_deviance #28106
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
Thanks very much for the PR. Let's a first wait for a second review on the |
Thanks for the work @lithomas1 , with #27904 now merged we're resuming reviews on the array api side. If you are still available to iterate on the pr could you pull main on your branch please ? |
This should be ready for another review. Sorry for the slow turnaround on this! |
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 update. Once the above and below comments are addressed, +1 on my end.
BTW, I have run the tests of this PR with torch and cupy on cuda host and torch on a MPS host and everything is green. |
OK, so this PR now fails with errors like
A solution would be to call An alternative solution would be either to update the doctests (and accept this API change), EDIT: I've just added the call to float on the result (to match other usages of |
Yes and this is consistent with what we do for other 1d regression scores (e.g. |
I am still +1 for merge BTW. |
Maybe @OmarManzoor would be interested in reviewing this one as well :) |
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 @lithomas1. Otherwise looks good.
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
Updated. Thanks for the reviews. |
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. Thanks @lithomas1
Reference Issues/PRs
xref #26024
Inspired by #27904
What does this implement/fix? Explain your changes.
Array API support in mean_tweedie_deviance
Any other comments?