ml_grid.util.grid_param_space
Defines the Grid class for creating a hyperparameter search space.
Classes
Initializes the Grid object. |
Module Contents
- class ml_grid.util.grid_param_space.Grid(sample_n: int | None = 1000)[source]
Initializes the Grid object.
This class creates a comprehensive grid of settings by taking the Cartesian product of all specified hyperparameters. It then randomly samples a specified number of these settings to create a manageable list for experimentation.
- Parameters:
sample_n (Optional[int], optional) – The number of random settings to sample from the full grid. Defaults to 1000.