Precision = TP / (TP + FP): of the items predicted positive, how many are truly positive.
Recall = TP / (TP + FN): of the truly positive items, how many were found.
F1 is the harmonic mean of the two; it punishes a big gap between them, which a plain average would hide.
Prefer recall when a miss is costly (cancer screening, fraud detection). Prefer precision when a false alarm is costly (spam filter moving real email, content takedowns).
Choose the decision threshold to match the business cost of each error type.
Loading…