Skip to content

DOC Ensures that fetch_20newsgroups passes numpydoc validation#22329

Merged
glemaitre merged 2 commits intoscikit-learn:mainfrom
Dev514:my_feature
Jan 31, 2022
Merged

DOC Ensures that fetch_20newsgroups passes numpydoc validation#22329
glemaitre merged 2 commits intoscikit-learn:mainfrom
Dev514:my_feature

Conversation

@Dev514
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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