Skip to contents

Compute the learning Rate for a given epoch using Exponential Decay.

Usage

exp_decay(lrmax = 0.005, mult = 0.1, epoch = NULL)

Arguments

lrmax

Upper limit of the range for the learning rate.

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.

Value

A numeric value.

Examples

exp_decay(lrmax = 0.005, mult = 0.1, epoch = 8) 
#> [1] 0.002246645