MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / classification_error

Function classification_error

mla/metrics/metrics.py:25–26  ·  view source on GitHub ↗
(actual, predicted)

Source from the content-addressed store, hash-verified

23
24@unhot
25def classification_error(actual, predicted):
26 return (actual != predicted).sum() / float(actual.shape[0])
27
28
29@unhot

Callers 1

accuracyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected