8000 DOC ensures sklearn.utils.shuffle passes numpydoc validation (#24367) · scikit-learn/scikit-learn@49279c3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 49279c3

Browse files
DOC ensures sklearn.utils.shuffle passes numpydoc validation (#24367)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
1 parent fd0e815 commit 49279c3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

sklearn/tests/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"sklearn.utils.multiclass.unique_labels",
4747
"sklearn.utils.safe_mask",
4848
"sklearn.utils.safe_sqr",
49-
"sklearn.utils.shuffle",
5049
"sklearn.utils.sparsefuncs.count_nonzero",
5150
"sklearn.utils.sparsefuncs.csc_median_axis_0",
5251
"sklearn.utils.sparsefuncs.incr_mean_variance_axis",

sklearn/utils/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,10 @@ def shuffle(*arrays, random_state=None, n_samples=None):
611611
Sequence of shuffled copies of the collections. The original arrays
612612
are not impacted.
613613
614+
See Also
615+
--------
616+
resample : Resample arrays or sparse matrices in a consistent way.
617+
614618
Examples
615619
--------
616620
It is possible to mix sparse and dense arrays in the same run::
@@ -643,10 +647,6 @@ def shuffle(*arrays, random_state=None, n_samples=None):
643647
644648
>>> shuffle(y, n_samples=2, random_state=0)
645649
array([0, 1])
646-
647-
See Also
648-
--------
649-
resample
650650
"""
651651
return resample(
652652
*arrays, replace=False, n_samples=n_samples, random_state=random_state

0 commit comments

Comments
 (0)
0