From e2e17769923591657cfc8bcfe404486a86bd969c Mon Sep 17 00:00:00 2001 From: yuanx749 Date: Sun, 24 Nov 2024 20:20:21 +0800 Subject: [PATCH] Fix some typos in RandomizedSearchCV and GridSearchCV --- sklearn/model_selection/_search.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sklearn/model_selection/_search.py b/sklearn/model_selection/_search.py index 7515436af33da..d37ece5df7249 100644 --- a/sklearn/model_selection/_search.py +++ b/sklearn/model_selection/_search.py @@ -1254,7 +1254,7 @@ class GridSearchCV(BaseSearchCV): - a list or tuple of unique strings; - a callable returning a dictionary where the keys are the metric names and the values are the metric scores; - - a dictionary with metric names as keys and callables a values. + - a dictionary with metric names as keys and callables as values. See :ref:`multimetric_grid_search` for an example. @@ -1630,7 +1630,7 @@ class RandomizedSearchCV(BaseSearchCV): - a list or tuple of unique strings; - a callable returning a dictionary where the keys are the metric names and the values are the metric scores; - - a dictionary with metric names as keys and callables a values. + - a dictionary with metric names as keys and callables as values. See :ref:`multimetric_grid_search` for an example. @@ -1655,7 +1655,7 @@ class RandomizedSearchCV(BaseSearchCV): Where there are considerations other than maximum score in choosing a best estimator, ``refit`` can be set to a function which - returns the selected ``best_index_`` given the ``cv_results``. In that + returns the selected ``best_index_`` given the ``cv_results_``. In that case, the ``best_estimator_`` and ``best_params_`` will be set according to the returned ``best_index_`` while the ``best_score_`` attribute will not be available.