Callback
smac.callback.callback
#
Callback
#
Callback interface with several methods that are called at different stages of the optimization process.
on_ask_end
#
on_next_configurations_end
#
on_next_configurations_end(
config_selector: ConfigSelector, config: Configuration
) -> None
Called after the intensification asks for new configurations. Essentially, this callback is called before the surrogate model is trained and before the acquisition function is called.
Source code in smac/callback/callback.py
on_next_configurations_start
#
on_next_configurations_start(
config_selector: ConfigSelector,
) -> None
Called before the intensification asks for new configurations. Essentially, this callback is called before the surrogate model is trained and before the acquisition function is called.
Source code in smac/callback/callback.py
on_tell_end
#
on_tell_end(
smbo: SMBO, info: TrialInfo, value: TrialValue
) -> bool | None
Called after the stats are updated and the trial is added to the runhistory. Optionally, returns false to gracefully stop the optimization.
Source code in smac/callback/callback.py
on_tell_start
#
on_tell_start(
smbo: SMBO, info: TrialInfo, value: TrialValue
) -> bool | None
Called before the stats are updated and the trial is added to the runhistory. Optionally, returns false to gracefully stop the optimization.