Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ predict
Function
predict
ann_class/xor_donut.py:35–37 ·
view source on GitHub ↗
(X, W1, b1, W2, b2)
Source
from the content-addressed store, hash-verified
33
34
35
def
predict(X, W1, b1, W2, b2):
36
Y, _ = forward(X, W1, b1, W2, b2)
37
return
np.round(Y)
38
39
40
def
derivative_w2(Z, T, Y):
Callers
2
test_xor
Function · 0.70
test_donut
Function · 0.70
Calls
1
forward
Function · 0.70
Tested by
2
test_xor
Function · 0.56
test_donut
Function · 0.56