Skip to content

Commit

Permalink
Fix numpydoc format for sklearn.model_selection._validation.numpydoc_…
Browse files Browse the repository at this point in the history
…validation_cross_val_predict (scikit-learn#21433)

Co-authored-by: iofall <50991099+iofall@users.noreply.github.com>

Co-authored-by: arisayosh <15692997+arisayosh@users.noreply.github.com>
  • Loading branch information
iofall and arisayosh authored Oct 23, 2021
1 parent e4a0bfc commit 92544c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion maint_tools/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@
"sklearn.metrics.pairwise.sigmoid_kernel",
"sklearn.model_selection._split.check_cv",
"sklearn.model_selection._split.train_test_split",
"sklearn.model_selection._validation.cross_val_predict",
"sklearn.model_selection._validation.cross_val_score",
"sklearn.model_selection._validation.cross_validate",
"sklearn.model_selection._validation.learning_curve",
Expand Down
4 changes: 2 additions & 2 deletions sklearn/model_selection/_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ def cross_val_predict(
pre_dispatch="2*n_jobs",
method="predict",
):
"""Generate cross-validated estimates for each input data point
"""Generate cross-validated estimates for each input data point.
The data is split according to the cv parameter. Each sample belongs
to exactly one test set, and its prediction is computed with an
Expand Down Expand Up @@ -853,7 +853,7 @@ def cross_val_predict(
- None, to use the default 5-fold cross validation,
- int, to specify the number of folds in a `(Stratified)KFold`,
- :term:`CV splitter`,
- An iterable yielding (train, test) splits as arrays of indices.
- An iterable that generates (train, test) splits as arrays of indices.
For int/None inputs, if the estimator is a classifier and ``y`` is
either binary or multiclass, :class:`StratifiedKFold` is used. In all
Expand Down

0 comments on commit 92544c7

Please sign in to comment.