skopt.callbacks.TimerCallback

class skopt.callbacks.TimerCallback[source][source]

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

The time for each iteration is stored in the iter_time attribute which you can inspect after the minimization has completed.

Attributes
iter_timelist, shape (n_iter,)

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

Methods

__call__(res)

Parameters

__init__()[source][source]

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