7.4.4. mclearn.performance.balanced_accuracy_expected¶
-
mclearn.performance.
balanced_accuracy_expected
(confusion)[source]¶ Compute the expected value of the posterior balanced accuracy.
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: bal_accuracy_expected Return type: float