accelmo.tracking.sgd.scheduler¶
Learning-rate schedulers used by optimisation fitters.
- class accelmo.tracking.sgd.scheduler.LRScheduler(warmup_epochs, decay_epochs, start_lr, max_lr, min_lr)[source]¶
Bases:
objectCosine warmup followed by cosine decay.
Typical usage is to instantiate the scheduler once and call it with the current zero-based epoch index inside the optimisation loop.
- Parameters:
warmup_epochs (int)
decay_epochs (int)
start_lr (float)
max_lr (float)
min_lr (float)