xnn.common.train.callbacks.Callback#
- class xnn.common.train.callbacks.Callback[source]#
Bases:
objectBase class of the trainer callbacks; override any of the hooks.
- on_train_epoch_start(trainer, epoch)[source]#
Before an epoch’s training pass.
- Parameters:
epoch (int)
- Return type:
None
- on_train_batch_end(trainer, logs, batch_idx)[source]#
After each optimizer step, with that batch’s loss terms and metrics.