MCPcopy Create free account
hub / github.com/ddbourgin/numpy-ml / __call__

Method __call__

numpy_ml/neural_nets/optimizers/optimizers.py:22–23  ·  view source on GitHub ↗
(self, param, param_grad, param_name, cur_loss=None)

Source from the content-addressed store, hash-verified

20 self.lr_scheduler = SchedulerInitializer(scheduler, lr=lr)()
21
22 def __call__(self, param, param_grad, param_name, cur_loss=None):
23 return self.update(param, param_grad, param_name, cur_loss)
24
25 def step(self):
26 """Increment the optimizer step counter by 1"""

Callers

nothing calls this directly

Calls 1

updateMethod · 0.95

Tested by

no test coverage detected