7.4.11. mclearn.performance.compute_balanced_accuracy¶
-
mclearn.performance.
compute_balanced_accuracy
(classifier, testing_pool, testing_oracle)[source]¶ Compute the accuracy of a classifier based on some test set.
Parameters: - classifier (Classifier object) – A trained instance of the Classifier object.
- testing_pool (array) – The feature matrix of the test examples.
- testing_oracle (array) – The target vector of the test examples.
Returns: balanced_accuracy_expected – The expected balanced accuracy rate on the test set.
Return type: float