evalml.tuners.GridSearchTuner

class evalml.tuners.GridSearchTuner(pipeline_hyperparameter_ranges, n_points=10, random_state=None, random_seed=0)[source]

Grid Search Optimizer.

Example

>>> tuner = GridSearchTuner({'My Component': {'param a': [0.0, 10.0], 'param b': ['a', 'b', 'c']}}, n_points=5)
>>> proposal = tuner.propose()
>>> assert proposal.keys() == {'My Component'}
>>> assert proposal['My Component'] == {'param a': 0.0, 'param b': 'a'}

Methods

__init__

Generate all of the possible points to search for in the grid

add

Not applicable to grid search tuner as generated parameters are not dependent on scores of previous parameters.

is_search_space_exhausted

Checks if it is possible to generate a set of valid parameters.

propose

Returns parameters from _grid_points iterations

Class Inheritance

Inheritance diagram of GridSearchTuner