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

Skip to content

DOC Ensures that make_blobs passes numpydoc validation #22342

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 7 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions sklearn/datasets/_samples_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ def make_blobs(
See :term:`Glossary <random_state>`.

return_centers : bool, default=False
If True, then return the centers of each cluster
If True, then return the centers of each cluster.

.. versionadded:: 0.23

Expand All @@ -855,6 +855,10 @@ def make_blobs(
The centers of each cluster. Only returned if
``return_centers=True``.

See Also
--------
make_classification : A more intricate variant.

Examples
--------
>>> from sklearn.datasets import make_blobs
Expand All @@ -870,10 +874,6 @@ def make_blobs(
(10, 2)
>>> y
array([0, 1, 2, 0, 2, 2, 2, 1, 1, 0])

See Also
--------
make_classification : A more intricate variant.
"""
generator = check_random_state(random_state)

Expand Down
1 change: 0 additions & 1 deletion sklearn/tests/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"sklearn.datasets._olivetti_faces.fetch_olivetti_faces",
"sklearn.datasets._openml.fetch_openml",
"sklearn.datasets._samples_generator.make_biclusters",
"sklearn.datasets._samples_generator.make_blobs",
"sklearn.datasets._samples_generator.make_checkerboard",
"sklearn.datasets._samples_generator.make_classification",
"sklearn.datasets._samples_generator.make_gaussian_quantiles",
Expand Down