vis4d.config.sweep

Helper functions for creating sweep configurations.

Functions

grid_search(param_names, param_values)

Linear grid search configuration over a list of parameters.

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