Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ derivative_w2
Function
derivative_w2
ann_class/xor_donut.py:40–42 ·
view source on GitHub ↗
(Z, T, Y)
Source
from the content-addressed store, hash-verified
38
39
40
def
derivative_w2(Z, T, Y):
41
# Z is (N, M)
42
return
(T - Y).dot(Z)
43
44
def
derivative_b2(T, Y):
45
return
(T - Y).sum()
Callers
2
test_xor
Function · 0.70
test_donut
Function · 0.70
Calls
no outgoing calls
Tested by
2
test_xor
Function · 0.56
test_donut
Function · 0.56