From 80dc0ae1afabc7a2efebdee3cc3ba2fee3b35fe9 Mon Sep 17 00:00:00 2001 From: Lucy Liu Date: Tue, 19 Nov 2024 14:12:10 +1100 Subject: [PATCH 1/2] add none --- sklearn/model_selection/_validation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklearn/model_selection/_validation.py b/sklearn/model_selection/_validation.py index 63252e818c3a6..d12baa1e95b6a 100644 --- a/sklearn/model_selection/_validation.py +++ b/sklearn/model_selection/_validation.py @@ -169,7 +169,7 @@ def cross_validate( scoring : str, callable, list, tuple, or dict, default=None Strategy to evaluate the performance of the cross-validated model on - the test set. + the test set. If None, the `estimator` object's `score` method is used. If `scoring` represents a single score, one can use: From ceb11e5d6bc672f1ce5e5831252ac354c092a45b Mon Sep 17 00:00:00 2001 From: Lucy Liu Date: Wed, 20 Nov 2024 15:27:54 +1100 Subject: [PATCH 2/2] review --- sklearn/model_selection/_validation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sklearn/model_selection/_validation.py b/sklearn/model_selection/_validation.py index d12baa1e95b6a..dddc0cce795af 100644 --- a/sklearn/model_selection/_validation.py +++ b/sklearn/model_selection/_validation.py @@ -169,7 +169,8 @@ def cross_validate( scoring : str, callable, list, tuple, or dict, default=None Strategy to evaluate the performance of the cross-validated model on - the test set. If None, the `estimator` object's `score` method is used. + the test set. If `None`, the + :ref:`default evaluation criterion ` of the estimator is used. If `scoring` represents a single score, one can use: