-
-
Notifications
You must be signed in to change notification settings - Fork 26k
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
DOC Wrong statement in release highlight #15704
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
"""
There was a problem hiding this 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>
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