Repository navigation
FEA Add array API support to roc_auc_score - #33200
Conversation
|
Currently, we are running into an issue with mixed-type promotion in TypeError: array_api_strict.float64 and array_api_strict.int64 cannot be type promoted togetherI'll investigate this further later. |
|
@virchan I took a quick look and I think I found a way to handle the Hopefully this will fix the problem. |
|
Oops I did not run all the tests locally. Let me push a fix. |
virchan
left a comment
There was a problem hiding this comment.
All CI have passed, including CUDA.
Thanks @ogrisel for fixing the mixed-dtype issue. The ROC AUC case is slightly tricky because it involves a Boolean dtype in addition to the usual float–integer combination.
Ready for review!
|
CUDA CI is green: https://github.com/scikit-learn/scikit-learn/actions/runs/40505079618/job/122193694848?pr=33200 Ready for another round of review! |
There was a problem hiding this comment.
A few more test improvements, but otherwise, LGTM.
Any second reviewer, e.g. @lucyleeow @betatim @OmarManzoor @StefanieSenger?
OmarManzoor
left a comment
There was a problem hiding this comment.
LGTM. Thank you @virchan
|
Thank you everyone for your time! 🫡 |
|
This was a significant addition, thanks @virchan ! I think https://github.com/scikit-learn/scikit-learn/pull/34824/changes#r3881473832 can be handled now? (cc @ogrisel ) |
Reference Issues/PRs
Towards #26024.
What does this implement/fix? Explain your changes.
This PR adds array API support to
roc_auc_score.AI usage disclosure
I used AI assistance for:
Any other comments?
Waiting for CI to turn green.