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