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

Function derivative_c

ann_class/regression.py:67–68  ·  view source on GitHub ↗
(Y, Yhat)

Source from the content-addressed store, hash-verified

65 return (Y - Yhat).dot(Z)
66
67def derivative_c(Y, Yhat):
68 return (Y - Yhat).sum()
69
70def derivative_W(X, Z, Y, Yhat, V):
71 # dZ = np.outer(Y - Yhat, V) * (1 - Z * Z) # this is for tanh activation

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected