API: grid_search¶
from optimizr import grid_search
best_params, best_score = grid_search(
objective_fn,
param_grid,
)
objective_fn: callable receiving a dict of parameters and returning a scalar lossparam_grid: dict of name -> list of values to enumerateReturns
(best_params: dict, best_score: float)