Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC Ensures that fetch_20newsgroups passes numpydoc validation #22329

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
merged 2 commits into from
Jan 31, 2022

Conversation

Dev514
Copy link
Contributor

@Dev514 Dev514 commented Jan 29, 2022

Reference Issues/PRs

Addresses #21350

What does this implement/fix? Explain your changes.

This PR fixes the following error that was appearing for numpydoc validation for sklearn.datasets._twenty_newsgroups.fetch_20newsgroups

-RT03: Return value has no description

Any other comments?

Thanks

@Dev514
Copy link
Contributor Author

Dev514 commented Jan 31, 2022

@thomasjpfan does this PR needs any fixes, since it is not merged yet.

A tuple of two ndarrays. The first contains a 2D array of shape
(n_samples, n_classes) with each row representing one sample and each
column representing the features. The second array of shape
(n_samples,) contains the target samples.
Copy link
Member

Choose a reason for hiding this comment

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

I made a small push to be sure that there are no trailing spaces and that we respect the PEP8/black convention (meaning no more than 88 characters per line).

You can check the commit that I just pushed. It should be enough for this PR. I will merge once the CI is green..

@glemaitre glemaitre merged commit b0067e0 into scikit-learn:main Jan 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants