syne_tune.optimizer.schedulers.searchers.single_objective_searcher module
- class syne_tune.optimizer.schedulers.searchers.single_objective_searcher.SingleObjectiveBaseSearcher(config_space, points_to_evaluate=None, random_seed=None)[source]
Bases:
BaseSearcherBase class of searchers, which optimize a single objective.
- on_trial_result(trial_id, config, metric)[source]
Inform searcher about result
The scheduler passes every result. If
update == True, the searcher should update its surrogate model (if any), otherwiseresultis an intermediate result not modelled.The default implementation calls
_update()ifupdate == True. It can be overwritten by searchers which also react to intermediate results.- Parameters:
trial_id (
int) – Seeon_trial_result()config (
Dict[str,Any]) – Seeon_trial_result()metric (
float) – Seeon_trial_result()
- on_trial_complete(trial_id, config, metric)[source]
Inform searcher about result
The scheduler passes every result. If
update == True, the searcher should update its surrogate model (if any), otherwiseresultis an intermediate result not modelled.The default implementation calls
_update()ifupdate == True. It can be overwritten by searchers which also react to intermediate results.- Parameters:
trial_id (
int) – Seeon_trial_result()config (
Dict[str,Any]) – Seeon_trial_result()metric (
float) – Seeon_trial_result()