MCPcopy
hub / github.com/ddbourgin/numpy-ml / update

Method update

numpy_ml/neural_nets/layers/layers.py:4248–4254  ·  view source on GitHub ↗

Update the layer parameters using the accrued gradients and layer optimizer. Flush all gradients once the update is complete.

(self)

Source from the content-addressed store, hash-verified

4246 self.cell.flush_gradients()
4247
4248 def update(self):
4249 """
4250 Update the layer parameters using the accrued gradients and layer
4251 optimizer. Flush all gradients once the update is complete.
4252 """
4253 self.cell.update()
4254 self.flush_gradients()
4255
4256
4257class LSTM(LayerBase):

Callers 4

set_paramsMethod · 0.45
updateMethod · 0.45
_trainMethod · 0.45

Calls 1

flush_gradientsMethod · 0.95

Tested by

no test coverage detected