lrAt method

  1. @override
double lrAt(
  1. int step
)
override

The LR that will be applied on the next step() call.

Implementation

@override
double lrAt(int step) {
  final k = step ~/ stepSize;
  var lr = initialLr;
  for (int i = 0; i < k; i++) {
    lr *= gamma;
  }
  return lr;
}