Hyperparameter tuning module#
Hyperparameter tuning module from Recommenders utilities.
Parameter sweep utils#
- recommenders.tuning.parameter_sweep.generate_param_grid(params)[source]#
Generator of parameter grids. Generate parameter lists from a parameter dictionary in the form of:
{ "param1": [value1, value2], "param2": [value1, value2] }
to:
[ {"param1": value1, "param2": value1}, {"param1": value2, "param2": value1}, {"param1": value1, "param2": value2}, {"param1": value2, "param2": value2} ]
- Parameters:
param_dict (dict) – dictionary of parameters and values (in a list).
- Returns:
A list of parameter dictionary string that can be fed directly into model builder as keyword arguments.
- Return type:
list