Compute the learning Rate for a given epoch using Step Decay.
Usage
stepdecay(lrmax = 0.005, newstep = 50, mult = 0.7, epoch = NULL)
Arguments
- lrmax
Upper limit of the range for the learning rate.
- newstep
Number of epochs until the learning rate is reduced.
- mult
Factor, by which the number of epochs until a restart is decreased after a new step.
- epoch
Epoch, for which the learning rate shall be calculated.
Examples
stepdecay(lrmax = 0.005, newstep = 50,
mult = 0.7, epoch = 3)
#> [1] 0.005