Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC Fix some typos in doc of RandomizedSearchCV and GridSearchCV #30341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sklearn/model_selection/_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand All @@ -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.
Expand Down
Loading