Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
28
def
derivative_b2(T, Y):
29
return
(Y - T).sum(axis=0)
30
31
def
derivative_w1(X, Z, T, Y, W2):
32
# return X.T.dot( ( ( Y-T ).dot(W2.T) * ( Z*(1 - Z) ) ) ) # for sigmoid
Callers
3
main
Function · 0.90
main
Function · 0.90
main
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected