8000 DOC Ensures that train_test_split passes numpydoc validation (#21435) · ogrisel/scikit-learn@5a1810a · GitHub
[go: up one dir, main page]

Skip to content

Commit 5a1810a

Browse files
arisayoshogrisel
authored andcommitted
DOC Ensures that train_test_split passes numpydoc validation (scikit-learn#21435)
1 parent 2921e59 commit 5a1810a

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

maint_tools/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@
172172
"sklearn.metrics.pairwise.rbf_kernel",
173173
"sklearn.metrics.pairwise.sigmoid_kernel",
174174
"sklearn.model_selection._split.check_cv",
175-
"sklearn.model_selection._split.train_test_split",
176175
"sklearn.model_selection._validation.cross_val_score",
177176
"sklearn.model_selection._validation.cross_validate",
178177
"sklearn.model_selection._validation.learning_curve",

sklearn/model_selection/_split.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,7 +2330,7 @@ def train_test_split(
23302330
shuffle=True,
23312331
stratify=None,
23322332
):
2333-
"""Split arrays or matrices into random train and test subsets
2333+
"""Split arrays or matrices into random train and test subsets.
23342334
23352335
Quick utility that wraps input validation and
23362336
``next(ShuffleSplit().split(X, y))`` and application to input data
@@ -2363,7 +2363,6 @@ def train_test_split(
23632363
Pass an int for reproducible output across multiple function calls.
23642364
See :term:`Glossary <random_state>`.
23652365
2366-
23672366
shuffle : bool, default=True
23682367
Whether or not to shuffle the data before splitting. If shuffle=False
23692368
then stratify must be None.
@@ -2414,7 +2413,6 @@ def train_test_split(
24142413
24152414
>>> train_test_split(y, shuffle=False)
24162415
[[0, 1, 2], [3, 4]]
2417-
24182416
"""
24192417
n_arrays = len(arrays)
24202418
if n_arrays == 0:

0 commit comments

Comments
 (0)
0