Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ predict
Function
predict
ann_class2/util.py:168–169 ·
view source on GitHub ↗
(p_y)
Source
from the content-addressed store, hash-verified
166
167
168
def
predict(p_y):
169
return
np.argmax(p_y, axis=1)
170
171
172
def
error_rate(p_y, t):
Callers
1
error_rate
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected