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

Function predict

ann_logistic_extra/ann_train.py:44–45  ·  view source on GitHub ↗
(P_Y_given_X)

Source from the content-addressed store, hash-verified

42 return softmax(Z.dot(W2) + b2), Z
43
44def predict(P_Y_given_X):
45 return np.argmax(P_Y_given_X, axis=1)
46
47# calculate the accuracy
48def classification_rate(Y, P):

Callers 1

ann_train.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected