-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC Clarify shape in OVO and OVR decision function docstring #18279
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
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 do not think we need to be too strict on the docstring type for the return.
LGTM
sklearn/multiclass.py
Outdated
@@ -412,7 +412,8 @@ def decision_function(self, X): | |||
|
|||
Returns | |||
------- | |||
T : array-like of shape (n_samples, n_classes) | |||
T : array-like of shape (n_samples, n_classes) or (n_samples,) if \ |
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.
T : array-like of shape (n_samples, n_classes) or (n_samples,) if \ | |
T : array-like of shape (n_samples, n_classes) or (n_samples,) for \ |
sklearn/multiclass.py
Outdated
@@ -687,7 +688,8 @@ def decision_function(self, X): | |||
|
|||
Returns | |||
------- | |||
Y : array-like of shape (n_samples, n_classes) | |||
Y : array-like of shape (n_samples, n_classes) or (n_samples,) if \ |
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, n_classes) or (n_samples,) if \ | |
Y : array-like of shape (n_samples, n_classes) or (n_samples,) for \ |
Point taken. I was just initially confused by the version changed note |
I think it has to do with #9100 . |
Thanks @lucyleeow |
Reference Issues/PRs
What does this implement/fix? Explain your changes.
Clarify shape in OVR and OVO docstring
Any other comments?