MultiStepLR#
- class brainpy.optim.MultiStepLR(lr, milestones, gamma=0.1, last_epoch=-1)[source]#
Decays the learning rate of each parameter group by gamma once the number of epoch reaches one of the milestones. Notice that such decay can happen simultaneously with other changes to the learning rate from outside this scheduler. When last_epoch=-1, sets initial lr as lr.