-
-
Notifications
You must be signed in to change notification settings - Fork 26k
[MRG] CLN Cleans up roc curve plotting #14723
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
[MRG] CLN Cleans up roc curve plotting #14723
Conversation
@@ -7,7 +7,7 @@ | |||
class RocCurveDisplay: | |||
"""ROC Curve visualization. | |||
|
|||
It is recommend to use `sklearn.metrics.plot_roc_curve` to create a | |||
It is recommend to use :func:`~sklearn.metrics.plot_roc_curve` to create a |
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.
what does the tilde do?
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.
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.
LGTM, thanks!
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.
2 tiny changes. LGTM
sklearn/metrics/_plot/roc_curve.py
Outdated
Target values. | ||
|
||
pos_label : int or str, default=None | ||
The label of the positive class. | ||
When `pos_label=None`, if y_true is in {-1, 1} or {0, 1}, | ||
`pos_label` is set to 1, otherwise an error will be raised. | ||
|
||
sample_weight : array-like, shape (n_samples, ) or None, default=None | ||
sample_weight : array-like of shape (n_samples, ), default=None |
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.
sample_weight : array-like of shape (n_samples, ), default=None | |
sample_weight : array-like of shape (n_samples,), default=None |
sklearn/metrics/_plot/roc_curve.py
Outdated
Input values. | ||
|
||
y : array-like, shape (n_samples, ) | ||
y : array-like of shape (n_samples, ) |
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.
y : array-like of shape (n_samples, ) | |
y : array-like of shape (n_samples,) |
Thanks @thomasjpfan |
This PR includes: