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

Method update

numpy_ml/neural_nets/layers/layers.py:4427–4433  ·  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

4425 self.cell.flush_gradients()
4426
4427 def update(self):
4428 """
4429 Update the layer parameters using the accrued gradients and layer
4430 optimizer. Flush all gradients once the update is complete.
4431 """
4432 self.cell.update()
4433 self.flush_gradients()

Callers

nothing calls this directly

Calls 2

flush_gradientsMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected