TST Add array API continuous metric common tests#32793
TST Add array API continuous metric common tests#32793lucyleeow wants to merge 3 commits intoscikit-learn:mainfrom
Conversation
OmarManzoor
left a comment
There was a problem hiding this comment.
Thanks for the PR @lucyleeow
| if "brier" in metric.__name__: | ||
| # `brier_score_loss` and `d2_brier_score` require specifying the | ||
| # `pos_label` | ||
| metric_kwargs["pos_label"] = "yes" |
There was a problem hiding this comment.
This is not needed for the multi class case.
|
@OmarManzoor I've just realised the string I am wondering whether we separate testing of:
I've actually have a PR to add a common test to check for mixed array input support: #32755. It means that:
cc @ogrisel for your thoughts too. |
Yes that should be good I think. The reason the tests for |
|
Thanks @OmarManzoor ! I think I need to push #32755 first, before this can go in. |
Reference Issues/PRs
Ref: https://github.com/scikit-learn/scikit-learn/pull/32422/files#r2548690179
What does this implement/fix? Explain your changes.
Moves the array API tests for continuous metrics added in #32422 to
test_common.py, so they can be re-used for other continuous metrics (e.g., #32626)Any other comments?
cc @OmarManzoor