Skip to content

DOC Wrong statement in release highlight #15704

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

Merged

Conversation

qinhanmin2014
Copy link
Member

y_true don't need to be integers between 0 and n_classes - 1.
See https://scikit-learn.org/dev/modules/generated/sklearn.metrics.roc_auc_score.html
labels array, shape = [n_classes] or None, optional (default=None)
List of labels to index y_score used for multiclass. If None, the lexicon order of y_true is used to index y_score

ping @adrinjalali

@qinhanmin2014 qinhanmin2014 added this to the 0.22 milestone Nov 22, 2019
Copy link
Member

@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the phrasing is still confusing:

# provided in an array with values from 0 to ``n_classes``, and the scores
# correspond to the probability estimates that a sample belongs to a particular
# class against all other classes. In both cases, the scores correspond to the
# probability estimates that a sample belongs to a particular
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find the expression "the scores" misleading here because just before we mentioned "the ROC AUC scores". I believe that "the scores" in this sentence are the output of clf.predict_proba(X), not the output of roc_auc_score(y, clf.predict_proba(X), multi_class='ovo').

Maybe this could be rephrased as:

"""
In both cases the multiclass ROC AUC scores are computed from the probability estimates that a sample belongs to a particular class according to the model.
"""

Copy link
Member

@jnothman jnothman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise lgtm

Co-Authored-By: Joel Nothman <joel.nothman@gmail.com>
@qinhanmin2014 qinhanmin2014 merged commit fc46a13 into scikit-learn:master Nov 25, 2019
adrinjalali pushed a commit to adrinjalali/scikit-learn that referenced this pull request Nov 25, 2019
@qinhanmin2014 qinhanmin2014 deleted the release-highlight-typo branch December 6, 2019 04:06
panpiort8 pushed a commit to panpiort8/scikit-learn that referenced this pull request Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants