liveBook · Manning

ParameterGrid

As explained in Evolutionary Deep Learning: Genetic algorithms and neural networks

ParameterGrid is a scikit-learn helper class that constructs the Cartesian product of parameter names and lists of candidate values.

ParameterGrid is a scikit-learn helper that turns a dictionary of parameter names and candidate-value lists into every Cartesian combination. It supports grids with any number of dimensions, making it useful for systematic hyperparameter optimization. section 5.3.1

A four-parameter grid

A grid containing middle-layer sizes, learning rates, batch sizes, and epoch counts produces 90 combinations. Iteration returns successive configurations, such as middle_layer=20 followed by middle_layer=26, while fixed single-value parameters remain unchanged.

How Evolutionary Deep Learning: Genetic algorithms and neural networks covers it

How deep it goes
Explains dictionary-to-combination construction and iteration, while deferring model evaluation and search-result analysis.
Examples
Demonstrates four hyperparameters, generator-produced candidate ranges, 90 combinations, and successive configurations.
What it assumes
Assumes Python dictionaries, lists, generators, and numeric ranges; demonstrates generator-based candidate creation.
What you can do after
Apply it via scikit-learn to construct and iterate over candidate hyperparameter combinations.
How it connects
Connects hyperparameters, grid search, hyperparameter optimization, generators, and Cartesian products.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Evolutionary Deep Learning: Genetic algorithms and neural networks. The section links point to the parts of the book it draws on.