def create_parameter_grid(param_dict): from sklearn.model_selection import ParameterGrid return ParameterGrid(param_dict)