qumphy.callbacks.base_logging module
File: qumphy/models/lightning_callbacks.py Project: 22HLT01 QUMPHY Contact: oskar.pfeffer@ptb.de Gitlab: https://gitlab.com/qumphy Description: Pytorch lightning callbacks.
- class qumphy.callbacks.base_logging.BaseLoggingCallback(*args: Any, **kwargs: Any)[source]
Bases:
CallbackThis is a base class for logging callbacks. Predictions and targets of each epoch for each stage are stored in dictionaries in self.predictions and self.targets as self.predictions[stage] and self.targets[stage], where stage is “train”, “val” or “test”. This allows to write new logging callbacks on top of this class, by overriding the log_epoch_end method.