stepdecay: Step Decay

View source: R/metrics.R

stepdecayR Documentation

Step Decay

Description

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.

Value

A numeric value.

Examples

stepdecay(lrmax = 0.005, newstep = 50,
mult = 0.7, epoch = 3)


GenomeNet/deepG documentation built on Dec. 24, 2024, 12:11 p.m.