Performance metrics are more useful if they can be explained in words. The area under the ROC curve (AUC) is interpretable, as the probability that a randomly chosen image containing a cat scores higher than a randomly chosen image without one, but it is pushed towards one by adding images without cats that are easy to classify. The F1-score avoids this problem, but cannot be interpreted in words in the same way. We propose an interpretable metric that answers the following question: when an algorithm is tuned to a threshold so that it can no longer distinguish the images it labels as cats from the images that really contain cats, how often does an image labelled as a cat actually contain one? We call this precision at the indistinguishability threshold (PIT), and show that, unlike AUC, it is unaffected by adding easy cases. We also put F1 into words: maximising F1 approximately maximises the probability that a randomly chosen real cat is labelled as a cat and a randomly chosen labelled image is a cat. This is one part of the condition that defines the indistinguishability threshold, which helps explain why F1 works well in practice. What it leaves out is how the algorithm ranks the images it wrongly labels as cats. The same construction can be used to tune the trade-off between false positives and false negatives in words. For example, if missing cats is more costly than false alarms, the threshold can be lowered until a real cat scores higher than an image labelled as a cat 60% of the time, rather than half the time, and the resulting precision and recall reported in the same terms. On a benchmark data set of mammograms, two classifiers with the same AUC differ by 13 percentage points in PIT. We suggest reporting PIT wherever F1 is currently reported.
翻译:暂无翻译