Skip to content

Fix array api support in pos_label checking in brier score metrics #9

@lucyleeow

Description

@lucyleeow

PR # 32422 added support for brier metrics, but missed array API support when doing checking pos_label here:

classes = np.unique(y_true)

np here should be xp

Also add tests for this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions