7.4.10. mclearn.performance.precision¶
-
mclearn.performance.
precision
(confusion, classes, classifiers)[source]¶ Compute the precision from a confusion matrix.
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: precisions – A list of precisions, one for each class. Return type: array