on_train_epoch_end#
- RayTrainReportCallback.on_train_epoch_end(trainer: pytorch_lightning.Trainer, pl_module: pytorch_lightning.LightningModule) None[source]#
Report metrics and a checkpoint to Ray Train at the end of an epoch.
Reports only every
checkpoint_frequencyepochs.- Parameters:
trainer (pytorch_lightning.Trainer) – The Lightning trainer. The callback reports its
callback_metricsand saves its checkpoint.pl_module (pytorch_lightning.LightningModule) – The Lightning module being trained. Unused.