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

Function error_rate

cnn_class/cifar.py:28–29  ·  view source on GitHub ↗
(targets, predictions)

Source from the content-addressed store, hash-verified

26
27
28def error_rate(targets, predictions):
29 return np.mean(targets != predictions)
30
31
32def image2array(im):

Callers 1

fitMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected