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: BaseSearcher

Base 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), otherwise result is an intermediate result not modelled.

The default implementation calls _update() if update == True. It can be overwritten by searchers which also react to intermediate results.

Parameters:
  • trial_id (int) – See on_trial_result()

  • config (Dict[str, Any]) – See on_trial_result()

  • metric (float) – See on_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), otherwise result is an intermediate result not modelled.

The default implementation calls _update() if update == True. It can be overwritten by searchers which also react to intermediate results.

Parameters:
  • trial_id (int) – See on_trial_result()

  • config (Dict[str, Any]) – See on_trial_result()

  • metric (float) – See on_trial_result()