# Searching for Good Settings

GridSearchCV tries every combination of the settings you list, scores each by cross-validation on the training rows, keeps the best in best_params\_ and best_score\_ with every result in cv_results\_, and refits the best pipeline on all the training rows, ready for one final test score; a pipeline's settings are named step\_\_setting, and RandomizedSearchCV tries a sample when the grid is too big.

![Cheat sheet: Searching for Good Settings](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/73540b63fded4a0dae6553049c277700.webp)

- Category: Machine Learning
- Level: Freelancer
- Tags: ai, Cross-Validation, Grid Search, GridSearchCV, Hyperparameter, Pipeline (python), python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/ml-grid-search-cheat-sheet
