neural_lam.custom_loggers#
Custom logging utilities (e.g., MLFlow wrappers) used in Neural-LAM.
Module Contents#
- class neural_lam.custom_loggers.CustomMLFlowLogger(experiment_name, tracking_uri, run_name)#
Bases:
pytorch_lightning.loggers.MLFlowLoggerCustom MLFlow logger that adds the log_image() functionality not present in the default implementation from pytorch-lightning as of version 2.0.3 at least.
Initialize the logger and start an MLflow run.
- Parameters:
- log_image(key, images, step=None)#
Log one or more Matplotlib figures as images in MLflow.
- Parameters:
- Raises:
SystemExit – If AWS credentials for the MLflow artifact store are missing.