Skip to content

Commit 4afe537

Browse files
authored
Clarify lr scheduler frequency (#9843)
1 parent 83acb86 commit 4afe537

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pytorch_lightning/core/lightning.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,9 @@ def configure_optimizers(self):
12641264
"lr_scheduler": {
12651265
"scheduler": ReduceLROnPlateau(optimizer, ...),
12661266
"monitor": "metric_to_track",
1267+
"frequency": "indicates how often the metric is updated"
1268+
# If "monitor" references validation metrics, then "frequency" should be set to a
1269+
# multiple of "trainer.check_val_every_n_epoch".
12671270
},
12681271
}
12691272

0 commit comments

Comments
 (0)