quaterion.train.callbacks.metrics_callback module¶
- class MetricsCallback[source]¶
Bases:
Callback
- on_sanity_check_end(trainer: Trainer, trainable_model: LightningModule) None [source]¶
Called when the validation sanity check ends.
- on_train_epoch_end(trainer: Trainer, trainable_model: LightningModule) None [source]¶
Called when the train epoch ends.
To access all batch outputs at the end of the epoch, either:
Implement training_epoch_end in the LightningModule and access outputs via the module OR
Cache data across train batch hooks inside the callback implementation to post-process in this hook.
- on_train_epoch_start(trainer: Trainer, trainable_model: LightningModule) None [source]¶
Called when the train epoch begins.
- on_validation_epoch_end(trainer: Trainer, trainable_model: LightningModule) None [source]¶
Called when the val epoch ends.