This page

Citing

Please consider citing the scikit-learn.

9.8.1.12. sklearn.metrics.zero_one

sklearn.metrics.zero_one(y_true, y_pred)

Zero-One classification loss

Positive integer (number of misclassifications). The best performance is 0.

Return the number of errors

Parameters :

y_true : array-like

y_pred : array-like

Returns :

loss : integer