MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

ML/src/python/neuralforge/optim/schedulers.py:103–106  ·  view source on GitHub ↗
(self, optimizer, total_iters, power=1.0, last_epoch=-1)

Source from the content-addressed store, hash-verified

101
102class PolynomialLR(_LRScheduler):
103 def __init__(self, optimizer, total_iters, power=1.0, last_epoch=-1):
104 self.total_iters = total_iters
105 self.power = power
106 super().__init__(optimizer, last_epoch)
107
108 def get_lr(self):
109 if self.last_epoch == 0 or self.last_epoch > self.total_iters:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected