ENH Use Array API in mean_tweedie_deviance#28106
ENH Use Array API in mean_tweedie_deviance#28106OmarManzoor merged 17 commits intoscikit-learn:mainfrom
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! |
ogrisel
left a comment
There was a problem hiding this comment.
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.
Thanks for the PR @lithomas1. Otherwise looks good.
Co-authored-by: Omar Salman <omar.salman@arbisoft.com>
|
Updated. Thanks for the reviews. |
OmarManzoor
left a comment
There was a problem hiding this comment.
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?