← All notes

Hyper-parameter search with GridSearchCV and RandomizedSearchCV

Answer: Hyper-parameters are parameters that are not directly learnt within estimators. It is possible and recommended to search the hyper-parameter space for the best cross validation score. (S1)

Two approaches

Tips

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: scikit-learn docs, 3.2. Tuning the hyper-parameters of an estimator — scikit-learn 1.9.1 documentation, BSD-3-Clause (scikit-learn/scikit-learn COPYING; Copyright (c) 2007-2026 The scikit-learn developers; https://github.com/scikit-learn/scikit-learn/blob/main/COPYING); scikit-learn docs, Getting Started — scikit-learn 1.9.1 documentation, BSD-3-Clause (scikit-learn/scikit-learn COPYING; Copyright (c) 2007-2026 The scikit-learn developers; https://github.com/scikit-learn/scikit-learn/blob/main/COPYING).

Cite this

Permanent ID: iil:note:r83m0cxa

iinventedlight. 2026. "Hyper-parameter search with GridSearchCV and RandomizedSearchCV." iinventedlight Library, iil:note:r83m0cxa, version of 2026-11-04. https://iinventedlight.com/library/notes/sklearn-grid-search/. License: CC-BY-4.0.

@misc{iil_note_r83m0cxa,
  author = {{iinventedlight}},
  title = {{Hyper-parameter search with GridSearchCV and RandomizedSearchCV}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/sklearn-grid-search/},
  note = {Permanent ID iil:note:r83m0cxa. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/sklearn-grid-search.md.