Warning: This documentation is for scikits.learn version 0.7.1. — Latest stable version

Contents

6.9.13. scikits.learn.metrics.zero_one_score

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