vis4d.config.sweep¶
Helper functions for creating sweep configurations.
Functions
|
Linear grid search configuration over a list of parameters. |
- grid_search(param_names, param_values)[source]¶
Linear grid search configuration over a list of parameters.
Returns a configuration object that can be used to perform a grid search over a list of parameters.
- Parameters:
param_names (list[str] | str) – The name of the parameters to be sampled.
param_values (list[Any] | list[list[Any]]) – The values which should be sampled.
Example
>>> grid_search("params.lr", [0.001, 0.01, 0.1])
- Returns:
- The configuration object that can be used to perform a grid
search.
- Return type:
ConfigDict