Enum LearningRateSchedulerType
- Namespace
- AiDotNet.LearningRateSchedulers
- Assembly
- AiDotNet.dll
Enumeration of available learning rate scheduler types.
public enum LearningRateSchedulerType
Fields
Constant = 0Constant learning rate (no decay).
CosineAnnealing = 5Cosine annealing: smooth cosine-shaped decay.
CosineAnnealingWarmRestarts = 6Cosine annealing with warm restarts (SGDR).
Cyclic = 9Cyclic learning rate: oscillate between bounds.
Exponential = 3Exponential decay: multiply LR by gamma every epoch.
Lambda = 11Custom lambda function scheduler.
LinearWarmup = 8Linear warmup followed by optional decay.
MultiStep = 2Multi-step decay: multiply LR by gamma at specified milestones.
OneCycle = 7One cycle policy: warmup then annealing.
Polynomial = 4Polynomial decay: LR follows polynomial curve to end value.
ReduceOnPlateau = 10Reduce on plateau: decrease when metric stops improving.
Sequential = 12Sequential composition of multiple schedulers.
Step = 1Step decay: multiply LR by gamma every step_size epochs.
Remarks
Use this enum with the LearningRateSchedulerFactory to create schedulers by type without having to reference the concrete classes directly.