Learning rate schedulers

Contains decorators for torch optimisers to apply LR schedulers as part of the optimisation step.

class vanguard.optimise.schedule.ApplyLearningRateScheduler(scheduler_class, *args, **kwargs)[source]

Apply a torch learning rate scheduler to a torch optimiser.

The scheduler is stepped at each step of optimiser.

Parameters:
__init__(scheduler_class, *args, **kwargs)[source]
Parameters:
  • scheduler_class (type[LRScheduler]) – The (uninstantiated) torch learning rate scheduler to be used.

  • args (Any)

  • kwargs (Any)