syne_tune.optimizer.schedulers.searchers.searcher_callback module
- class syne_tune.optimizer.schedulers.searchers.searcher_callback.StoreResultsAndModelParamsCallback(add_wallclock_time=True)[source]
Bases:
StoreResultsCallback
Extends
StoreResultsCallback
by also storing the current surrogate model parameters inon_trial_result()
. This works for schedulers with model-based searchers. For other schedulers, this callback behaves the same as the superclass.- on_trial_result(trial, status, result, decision)[source]
Called when a new result (reported by a trial) is observed
The arguments here are inputs or outputs of
scheduler.on_trial_result
(called just before).- Parameters:
trial (
Trial
) – Trial whose report has been receivedstatus (
str
) – Status of trial beforescheduler.on_trial_result
has been calledresult (
Dict
[str
,Any
]) – Result dict receiveddecision (
str
) – Decision returned byscheduler.on_trial_result
- class syne_tune.optimizer.schedulers.searchers.searcher_callback.SimulatorAndModelParamsCallback[source]
Bases:
SimulatorCallback
Extends
SimulatorCallback
by also storing the current surrogate model parameters inon_trial_result()
. This works for schedulers with model-based searchers. For other schedulers, this callback behaves the same as the superclass.- on_trial_result(trial, status, result, decision)[source]
Called when a new result (reported by a trial) is observed
The arguments here are inputs or outputs of
scheduler.on_trial_result
(called just before).- Parameters:
trial (
Trial
) – Trial whose report has been receivedstatus (
str
) – Status of trial beforescheduler.on_trial_result
has been calledresult (
Dict
[str
,Any
]) – Result dict receiveddecision (
str
) – Decision returned byscheduler.on_trial_result