deephyper.skopt.callbacks.DeadlineStopper#

class deephyper.skopt.callbacks.DeadlineStopper(total_time)[source]#

Bases: EarlyStopper

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

iter_time#

iter_time[i-1] gives the time taken to complete iteration i

Type:

list, shape (n_iter,)

Parameters:

total_time (float) – fixed budget of time (seconds) that the optimization must finish within.

Methods

__call__(result)#
Parameters:

result (OptimizeResult, scipy object) – The optimization as a OptimizeResult object.