Skip to content

Commit

Permalink
Update param_scheduler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 committed Jun 28, 2023
1 parent bfdfa50 commit 6c38fe3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ignite/handlers/param_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ class ReduceLROnPlateauScheduler(ParamScheduler):
.. code-block:: python
# Metric 'metric-name' should surpass its best value by
# Metric "accuracy" should increase the best value by
# more than 1 unit after at most 2 epochs, otherwise LR
# would get multiplied by 0.5 .
Expand All @@ -1537,10 +1537,10 @@ class ReduceLROnPlateauScheduler(ParamScheduler):
default_trainer = get_default_trainer()
# Metric `loss` should decrease more than
# a tenth of best loss after at most
# Metric "loss" should decrease more than
# 0.1 of best loss after at most
# three iterations. Then best loss would get
# updated, otherwise lr is multiplied by 2
# updated, otherwise lr is multiplied by 0.5
scheduler = ReduceLROnPlateauScheduler(
default_optimizer, "loss",
Expand Down

0 comments on commit 6c38fe3

Please sign in to comment.