deephyper.skopt.callbacks#

Monitor and influence the optimization procedure via callbacks.

Callbacks are callables which are invoked after each iteration of the optimizer and are passed the results “so far”. Callbacks can monitor progress, or stop the optimization early by returning True.

Functions

check_callback

Check if callback is a callable or a list of callables.

dump

Store an skopt optimization result into a file.

time

Return the current time in seconds since the Epoch.

Classes

Callable

CheckpointSaver

Save current state after each iteration with deephyper.skopt.dump.

DeadlineStopper

Stop the optimization before running out of a fixed budget of time.

DeltaXStopper

Stop the optimization when |x1 - x2| < delta

DeltaYStopper

Stop the optimization if the n_best minima are within delta

EarlyStopper

Decide to continue or not given the results so far.

HollowIterationsStopper

Stop if the improvement over the last n iterations is below a threshold.

ThresholdStopper

Stop the optimization when the objective value is lower than the given threshold.

TimerCallback

Log the elapsed time between each iteration of the minimization loop.

VerboseCallback

Callback to control the verbosity.