This page

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