This documentation is for scikit-learn version 0.11-gitOther versions

Citing

If you use the software, please consider citing scikit-learn.

This page

8.17.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