Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ error_rate
Function
error_rate
ann_class2/util.py:172–174 ·
view source on GitHub ↗
(p_y, t)
Source
from the content-addressed store, hash-verified
170
171
172
def
error_rate(p_y, t):
173
prediction = predict(p_y)
174
return
np.mean(prediction != t)
175
176
177
def
cost(p_y, t):
Callers
6
main
Function · 0.90
main
Function · 0.90
main
Function · 0.90
main
Function · 0.90
benchmark_full
Function · 0.70
benchmark_pca
Function · 0.70
Calls
1
predict
Function · 0.70
Tested by
no test coverage detected