mml.core.scripts.callbacks
- class MMLModelCheckpoint[source]
Bases:
ModelCheckpointSlight modification of the lightning ModelCheckpoint (see https://github.com/Lightning-AI/pytorch-lightning/issues/20245).
- class MMLRichProgressBar[source]
Bases:
RichProgressBarSlight modification of the Lightning rich progress bar, showing the correct experiment name.
- class MMLTQDMProgressBar[source]
Bases:
TQDMProgressBarSlight modification of the Lightning tqdm progress bar, showing the correct experiment name.
- class MetricsTrackerCallback[source]
Bases:
CallbackKeeps track of all metrics, at the end of each epoch.
- copy_metrics(trainer: Trainer, phase: LearningPhase) None[source]
- class StopAfterKeyboardInterrupt[source]
Bases:
CallbackEnsures pytorch lightning to really shut down after keyboard interrupt. This is the new variant of this Callback aimed to be used by most recent pytorch lightning versions.
- on_exception(trainer: Trainer, pl_module: LightningModule, exception: BaseException) None[source]