-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
roc_auc_score fails if dtype is object #2723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not sure how this should be dealt with: either rely on lexical ordering and let the last label be the positive or expose the pos_label argument. Anyways, the error is misleading because the data is binary and the pos_label cannot be specified. |
why can |
The greater-is-positive approach is used elsewhere, but is awkward (e.g. On 7 January 2014 11:22, Andreas Mueller notifications@github.com wrote:
|
related #2616 |
What I can understand is, roc_auc_score works for binary, 0, 1, does not understand 'yes' and 'no' as negative and positive class, which will make confusion for computation of true/false positive/negative, which to be treated what?? -----------try this instead ------This works------- |
We should not be able to provide |
@jnothman Just make sure that this will only work for binary y_true, not for multilabel-indicator y_true, right? |
@jnothman |
why does y_score represent the probability of good? If someone trains a LogisticRegression model with |
to reproduce:
The text was updated successfully, but these errors were encountered: