MCPcopy 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
172def error_rate(p_y, t):
173 prediction = predict(p_y)
174 return np.mean(prediction != t)
175
176
177def cost(p_y, t):

Callers 6

mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
mainFunction · 0.90
benchmark_fullFunction · 0.70
benchmark_pcaFunction · 0.70

Calls 1

predictFunction · 0.70

Tested by

no test coverage detected