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.16.1.11. sklearn.metrics.zero_one_score

sklearn.metrics.zero_one_score(y_true, y_pred)

Zero-One classification score

Positive integer (number of good classifications). The best performance is 1.

Return the percentage of good predictions.

Parameters :

y_true : array-like

y_pred : array-like

Returns :

score : integer