deephyper.skopt.callbacks.TimerCallback

deephyper.skopt.callbacks.TimerCallback#

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

Bases: object

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.

iter_time#

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

Type:

list, shape (n_iter,)

Methods

__call__(res)[source]#
Parameters:

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