Skip to content

Commit e085276

Browse files
authored
DOC Fix some typos in doc of RandomizedSearchCV and GridSearchCV (scikit-learn#30341)
1 parent d0bda5c commit e085276

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sklearn/model_selection/_search.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,7 +1254,7 @@ class GridSearchCV(BaseSearchCV):
12541254
- a list or tuple of unique strings;
12551255
- a callable returning a dictionary where the keys are the metric
12561256
names and the values are the metric scores;
1257-
- a dictionary with metric names as keys and callables a values.
1257+
- a dictionary with metric names as keys and callables as values.
12581258
12591259
See :ref:`multimetric_grid_search` for an example.
12601260
@@ -1630,7 +1630,7 @@ class RandomizedSearchCV(BaseSearchCV):
16301630
- a list or tuple of unique strings;
16311631
- a callable returning a dictionary where the keys are the metric
16321632
names and the values are the metric scores;
1633-
- a dictionary with metric names as keys and callables a values.
1633+
- a dictionary with metric names as keys and callables as values.
16341634
16351635
See :ref:`multimetric_grid_search` for an example.
16361636
@@ -1655,7 +1655,7 @@ class RandomizedSearchCV(BaseSearchCV):
16551655
16561656
Where there are considerations other than maximum score in
16571657
choosing a best estimator, ``refit`` can be set to a function which
1658-
returns the selected ``best_index_`` given the ``cv_results``. In that
1658+
returns the selected ``best_index_`` given the ``cv_results_``. In that
16591659
case, the ``best_estimator_`` and ``best_params_`` will be set
16601660
according to the returned ``best_index_`` while the ``best_score_``
16611661
attribute will not be available.

0 commit comments

Comments
 (0)