Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
44
def
predict(P_Y_given_X):
45
return
np.argmax(P_Y_given_X, axis=1)
46
47
# calculate the accuracy
48
def
classification_rate(Y, P):
Callers
1
ann_train.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected