Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e2d1209

Browse filesBrowse files
authored
DOC Ensures that cross_validate passes numpydoc validation (#23145)
1 parent d379889 commit e2d1209
Copy full SHA for e2d1209

File tree

2 files changed

+10
-12
lines changed
Filter options

2 files changed

+10
-12
lines changed

‎sklearn/model_selection/_validation.py

Copy file name to clipboardExpand all lines: sklearn/model_selection/_validation.py
+10-11Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,16 @@ def cross_validate(
208208
This is available only if ``return_estimator`` parameter
209209
is set to ``True``.
210210
211+
See Also
212+
--------
213+
cross_val_score : Run cross-validation for single metric evaluation.
214+
215+
cross_val_predict : Get predictions from each split of cross-validation for
216+
diagnostic purposes.
217+
218+
sklearn.metrics.make_scorer : Make a scorer from a performance metric or
219+
loss function.
220+
211221
Examples
212222
--------
213223
>>> from sklearn import datasets, linear_model
@@ -238,17 +248,6 @@ def cross_validate(
238248
[-3635.5... -3573.3... -6114.7...]
239249
>>> print(scores['train_r2'])
240250
[0.28009951 0.3908844 0.22784907]
241-
242-
See Also
243-
--------
244-
cross_val_score : Run cross-validation for single metric evaluation.
245-
246-
cross_val_predict : Get predictions from each split of cross-validation for
247-
diagnostic purposes.
248-
249-
sklearn.metrics.make_scorer : Make a scorer from a performance metric or
250-
loss function.
251-
252251
"""
253252
X, y, groups = indexable(X, y, groups)
254253

‎sklearn/tests/test_docstrings.py

Copy file name to clipboardExpand all lines: sklearn/tests/test_docstrings.py
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@
8181
"sklearn.metrics.pairwise.polynomial_kernel",
8282
"sklearn.metrics.pairwise.rbf_kernel",
8383
"sklearn.metrics.pairwise.sigmoid_kernel",
84-
"sklearn.model_selection._validation.cross_validate",
8584
"sklearn.model_selection._validation.learning_curve",
8685
"sklearn.model_selection._validation.permutation_test_score",
8786
"sklearn.model_selection._validation.validation_curve",

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.