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

Function derivative_b1

ann_class2/mlp.py:35–37  ·  view source on GitHub ↗
(Z, T, Y, W2)

Source from the content-addressed store, hash-verified

33 return X.T.dot( ( ( Y-T ).dot(W2.T) * (Z > 0) ) ) # for relu
34
35def derivative_b1(Z, T, Y, W2):
36 # return (( Y-T ).dot(W2.T) * ( Z*(1 - Z) )).sum(axis=0) # for sigmoid
37 return (( Y-T ).dot(W2.T) * (Z > 0)).sum(axis=0) # for relu

Callers 3

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected