Contents

6.9.14. scikits.learn.metrics.zero_one

scikits.learn.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