MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / ExponentialLR

Class ExponentialLR

monai/optimizers/lr_scheduler.py:51–58  ·  view source on GitHub ↗

Exponentially increases the learning rate between two boundaries over a number of iterations.

Source from the content-addressed store, hash-verified

49
50
51class ExponentialLR(_LRSchedulerMONAI):
52 """Exponentially increases the learning rate between two boundaries over a number of
53 iterations.
54 """
55
56 def get_lr(self):
57 r = self.last_epoch / (self.num_iter - 1)
58 return [base_lr * (self.end_lr / base_lr) ** r for base_lr in self.base_lrs]
59
60
61class WarmupCosineSchedule(LambdaLR):

Callers 1

range_testMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…