Smith (2015) cycles the learning rate between a lower and upper bound instead of decaying it monotonically. A triangular wave goes up and down each cycle, which lets the model escape poor regions.
Implement triangular_lr(it, base, max_lr, step), the triangular cyclical rate.
step iterations.Find which cycle the iteration is in, measure its distance from the peak, and interpolate linearly between the bounds.
No results yet
Run your code to check it against the examples, or submit to run every test.