7.4.1. mclearn.performance.naive_accuracy

mclearn.performance.naive_accuracy(confusion)[source]

Compute the naive accuracy rate.

Parameters:confusion (array, shape = [n_classes, n_classes]) – Where entry c_{ij} is the number of observations in class i but are classified as class j.
Returns:naive_accuracy
Return type:float