ExponentialLR

Contents

ExponentialLR#

class brainpy.optim.ExponentialLR(lr, gamma, last_epoch=-1)[source]#

Decays the learning rate of each parameter group by gamma every epoch. When last_epoch=-1, sets initial lr as lr.

Parameters:
  • lr (float) – Initial learning rate.

  • gamma (float) – Multiplicative factor of learning rate decay.

  • last_epoch (int) – The index of last epoch. Default: -1.