MCPcopy 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
35def predict(X, W1, b1, W2, b2):
36 Y, _ = forward(X, W1, b1, W2, b2)
37 return np.round(Y)
38
39
40def derivative_w2(Z, T, Y):

Callers 2

test_xorFunction · 0.70
test_donutFunction · 0.70

Calls 1

forwardFunction · 0.70

Tested by 2

test_xorFunction · 0.56
test_donutFunction · 0.56