Timer#

class pinnx.callbacks.Timer(available_time)[source]#

Stop training when training time reaches the threshold. This Timer starts after the first call of on_train_begin.

Parameters:

available_time (float) – Total time (in minutes) available for the training.

on_epoch_end()[source]#

Called at the end of every epoch.

on_train_begin()[source]#

Called at the beginning of trainer training.