-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: ReduceLROnPlateau records the learning rate and works on batches (…
…#1075) Previously, when using ReduceLROnPlateau, we would not record the learning rates in history. The comment says that's because this class does not expose the get_last_lr method. I checked it again and it's now present, so let's use it. Furthermore, I made a change to enable ReduceLROnPlateau to step on each batch instead of each epoch. This is consistent with other learning rate schedulers.
- Loading branch information
1 parent
4f755b9
commit 5bd84bd
Showing
3 changed files
with
97 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters