MCPcopy Index your code
hub / github.com/lazyprogrammer/machine_learning_examples / derivative_b2

Function derivative_b2

ann_class2/mlp.py:28–29  ·  view source on GitHub ↗
(T, Y)

Source from the content-addressed store, hash-verified

26 return Z.T.dot(Y - T)
27
28def derivative_b2(T, Y):
29 return (Y - T).sum(axis=0)
30
31def derivative_w1(X, Z, T, Y, W2):
32 # return X.T.dot( ( ( Y-T ).dot(W2.T) * ( Z*(1 - Z) ) ) ) # for sigmoid

Callers 3

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected