Metadata callback
smac.callback.metadata_callback
#
MetadataCallback
#
Bases: Callback
Source code in smac/callback/metadata_callback.py
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_start
#
on_start(smbo: SMBO) -> None
Called before the optimization starts.
Source code in smac/callback/metadata_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.