MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / update

Function update

ann_class/regression.py:80–91  ·  view source on GitHub ↗
(X, Z, Y, Yhat, W, b, V, c, learning_rate=1e-4)

Source from the content-addressed store, hash-verified

78 return dZ.sum(axis=0)
79
80def update(X, Z, Y, Yhat, W, b, V, c, learning_rate=1e-4):
81 gV = derivative_V(Z, Y, Yhat)
82 gc = derivative_c(Y, Yhat)
83 gW = derivative_W(X, Z, Y, Yhat, V)
84 gb = derivative_b(Z, Y, Yhat, V)
85
86 V += learning_rate*gV
87 c += learning_rate*gc
88 W += learning_rate*gW
89 b += learning_rate*gb
90
91 return W, b, V, c
92
93
94

Callers 1

regression.pyFile · 0.85

Calls 4

derivative_VFunction · 0.85
derivative_cFunction · 0.85
derivative_WFunction · 0.85
derivative_bFunction · 0.85

Tested by

no test coverage detected