ML glossary › Grid search
What is grid search in machine learning?
Trying every combination of settings from a list and keeping the best.
Where it shows up
Generalization
Hyperparameter tuning
grid search tries every pair from your lists (here 3 learning rates × 4 depths = 12 models) and scores each one with cross-validation. Taller blocks mean better scores.
See grid search in motion. The lesson animates it step by step, free.
Open the lessonRelated terms
- Hyperparameter: A setting you choose before training (like the learning rate), rather than one the model…