Usage with ItwinAI Logger
‼
The ItwinAI logger must be imported from `yprov4ml.loggers.prov4ml_itwinai_logger`; it is not exported at the top level.
This section provides an example of how to use Prov4ML with PyTorch Lightning.
In any lightning module the calls to train_step, validation_step, and test_step can be overridden to log the necessary information.
Example:
from yprov4ml.loggers.prov4ml_itwinai_logger import ProvMLItwinAILogger
trainer = L.Trainer(
accelerator="cuda",
devices=1,
max_epochs=EPOCHS,
enable_checkpointing=False,
log_every_n_steps=1,
logger=[ProvMLItwinAILogger()],
)