Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

roc_auc_score fails if dtype is object #2723

Copy link
Copy link
Closed
@pprett

Description

@pprett
Issue body actions

to reproduce:

import numpy as np
np.random.seed(13)
classes = np.array(['yes', 'no'])
y = classes[np.random.randint(2, size=10)]
t = classes[np.random.randint(2, size=10)]
from sklearn.metrics import roc_auc_score
from sklearn.metrics import accuracy_score
roc_auc_score(t, y)
ValueError: Data is not binary and pos_label is not specified

Metadata

Metadata

Assignees

No one assigned

    Labels

    EasyWell-defined and straightforward way to resolveWell-defined and straightforward way to resolveEnhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.