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

Method __str__

numpy_ml/neural_nets/optimizers/optimizers.py:103–108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 }
102
103 def __str__(self):
104 H = self.hyperparameters
105 lr, mm, cn, sc = H["lr"], H["momentum"], H["clip_norm"], H["lr_scheduler"]
106 return "SGD(lr={}, momentum={}, clip_norm={}, lr_scheduler={})".format(
107 lr, mm, cn, sc
108 )
109
110 def update(self, param, param_grad, param_name, cur_loss=None):
111 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected