callcut.training.LoggingCallback🔗
- class callcut.training.LoggingCallback[source]🔗
Callback that logs training progress using the callcut logger.
This callback provides formatted logging at the end of each epoch, complementing Lightning’s built-in progress bar.
Methods
on_train_epoch_end(trainer, pl_module)Log training metrics at the end of each epoch.
Examples
>>> from callcut.training import LoggingCallback >>> import lightning as L >>> >>> trainer = L.Trainer( ... max_epochs=10, ... callbacks=[LoggingCallback()], ... )
- on_train_epoch_end(trainer, pl_module)[source]🔗
Log training metrics at the end of each epoch.
- Parameters:
- trainer
Trainer The Lightning trainer instance.
- pl_module
LightningModule The Lightning module being trained.
- trainer