MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / step

Method step

mla/neuralnet/parameters.py:64–69  ·  view source on GitHub ↗

Increase specific weight by amount of the step parameter.

(self, name, step)

Source from the content-addressed store, hash-verified

62 self._grads[key] = np.zeros_like(self._params[key])
63
64 def step(self, name, step):
65 """Increase specific weight by amount of the step parameter."""
66 self._params[name] += step
67
68 if name in self.constraints:
69 self._params[name] = self.constraints[name].clip(self._params[name])
70
71 def update_grad(self, name, value):
72 """Update gradient values."""

Callers 8

updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
updateMethod · 0.80
trainMethod · 0.80
playMethod · 0.80

Calls 1

clipMethod · 0.45

Tested by

no test coverage detected