Callback#

class pinnx.callbacks.Callback[source]#

Callback base class.

model#

instance of Trainer. Reference of the trainer being trained.

init()[source]#

Init after setting a trainer.

on_batch_begin()[source]#

Called at the beginning of every batch.

on_batch_end()[source]#

Called at the end of every batch.

on_epoch_begin()[source]#

Called at the beginning of every epoch.

on_epoch_end()[source]#

Called at the end of every epoch.

on_predict_begin()[source]#

Called at the beginning of prediction.

on_predict_end()[source]#

Called at the end of prediction.

on_train_begin()[source]#

Called at the beginning of trainer training.

on_train_end()[source]#

Called at the end of trainer training.