parametergrid
A parameter grid, often referred to as a param_grid, is a structured specification of hyperparameter values used to explore model configurations during hyperparameter optimization. It represents a grid of possible values for one or more hyperparameters, typically forming the Cartesian product of the provided value sets.
In practice, grids are expressed as dictionaries or mappings from parameter names to lists of values. When
Grid search algorithms generate every combination from the grid and evaluate each by fitting the model and
Limitations include combinatorial explosion and potential overfitting to cross-validation metrics. Practical use often employs smaller grids
Example: For a support vector machine, a parameter grid might specify C values of 0.1, 1, and