ExponentialScheduler#

class composer.optim.ExponentialScheduler(gamma, decay_period='1ep')[source]#

Decays the learning rate exponentially.

See also

This scheduler is based on ExponentialLR from PyTorch.

Exponentially decays the learning rate such that it decays by a factor of gamma every decay_period time.

Specifically, the learning rate multiplier ฮฑ\alpha can be expressed as:

ฮฑ(t)=ฮณt/ฯ\alpha(t) = \gamma ^ {t / \rho}

Where ฯ\rho represents the decay period, and ฮณ\gamma represents the multiplicative decay factor.

Parameters
  • decay_period (str | Time) โ€“ Decay period. Default = "1ep".

  • gamma (float) โ€“ Multiplicative decay factor.