skopt.callbacks.DeadlineStopper

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

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

Parameters
total_timefloat

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

Attributes
iter_timelist, shape (n_iter,)

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

Methods

__call__(result)

Parameters

__init__(total_time)[source][source]

Initialize self. See help(type(self)) for accurate signature.