-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
DOC consistency fixes in multiclass estimators docstring #25226
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
thomasjpfan
left a comment
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.
Thanks for the PR!
sklearn/multiclass.py
Outdated
| Returns | ||
| ------- | ||
| T : (sparse) array-like of shape (n_samples, n_classes) | ||
| T : {array-like, sparse matrix} of shape (n_samples, n_classes) |
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 the output of this method can be sparse.
Co-authored-by: Thomas J. Fan <[email protected]>
thomasjpfan
left a comment
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
Fixes:
term{array-like, sparse matrix}for consistency with other estimatorsSee Alsosections consistent