Repository navigation
TST Add array API continuous metric common tests - #32793
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. |
|
Now that #32755 is in, this is ready for review String checking is handled in #32755. We check binary, multilabel and multiclass classification for continuous metrics, with and without sample weight. I have tried to match the previous tests. Ping @OmarManzoor and maybe @betatim ? |
OmarManzoor
left a comment
There was a problem hiding this comment.
This refactoring LGTM. Thank you @lucyleeow
|
CC: @ogrisel |
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