-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ENH add support for Array API to mean_pinball_loss
and explained_variance_score
#29978
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
ENH add support for Array API to mean_pinball_loss
and explained_variance_score
#29978
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.
So I think that the functions relying on the percentile
or _weighted_percentile
function cannot be implemented for the moment.
394a527
to
cf41a3e
Compare
cf41a3e
to
d2acd79
Compare
mean_pinball_loss
and explained_variance_score
TL;DR: I've reverted the metrics. Thank you for catching that! I have resolved the dependence of I'll also add a note in the Array API meta issue to inform others to skip |
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 @virchan
…ck_reg_targets_with_floating_dtype`.
Thanks for the updates @OmarManzoor! It's ready for a second review! |
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.
Otherwise LGTM
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.
@virchan Two of the CUDA tests are failing. I think we need to handle using the appropriate device. Could you kindly have a look?
Co-authored-by: Omar Salman <[email protected]>
Thank you for the follow-up, @OmarManzoor! I have updated the |
@virchan Were you able to test with the MPS device locally? |
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 @virchan
I checked with MPS as well and it looks okay 🟢
Thank you everyone for your time! |
Reference Issues/PRs
Towards #26024.
What does this implement/fix? Explain your changes.
This PR adds Array API support for the following regression metrics:
(dependent onmedian_absolute_error
_weighted_percentile
)explained_variance_score
(dependent ond2_pinball_score
percentile
and_weighted_percentile
)(dependent ond2_absolute_error_score
percentile
and_weighted_percentile
)mean_pinball_loss
Any other comments?
cc: @ogrisel