docs: fix LightningCLI docs example for Trainer Callbacks (#19701)

This commit is contained in:
Jin Zehao 2024-03-28 06:16:29 +08:00 committed by GitHub
parent ca6c94c208
commit 94167d6e65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -80,12 +80,12 @@ following:
trainer:
callbacks:
- class_path: lightning.pytorch.callbacks.EarlyStopping
- class_path: lightning.pytorch.callbacks.ModelCheckpoint
init_args:
patience: 5
save_weights_only: true
- class_path: lightning.pytorch.callbacks.LearningRateMonitor
init_args:
...
logging_interval: 'epoch'
Similar to the callbacks, any parameter in :class:`~lightning.pytorch.trainer.trainer.Trainer` and user extended
:class:`~lightning.pytorch.core.LightningModule` and