Start with the positive class

Precision and recall only make sense once you define the outcome you care about. In a support queue, suppose a positive is a message that needs urgent follow-up. A true positive is an urgent message the system flags. A false positive is a routine message it flags, and a false negative is an urgent message it misses.

Calculate precision from flagged messages

Imagine the classifier flags 20 messages, and 15 really need urgent follow-up. Precision is true positives divided by all predicted positives. Here that is 15 divided by 20, or 75%. If the team sorts all 20 flagged messages, five are extra work.

Calculate recall from truly urgent messages

Suppose there were 25 urgent messages in the full sample. Recall is true positives divided by all actual positives. Here that is 15 divided by 25, or 60%. The ten urgent messages the system missed explain why a fairly precise flag can still leave a coverage problem.

Choose a threshold based on error costs

A lower threshold may catch more urgent messages while adding noisy flags. A higher threshold may reduce the review queue while missing real cases. Compare a few thresholds on validation data and plan a human review path if missed outcomes matter most. Choose your operating threshold before reporting final test performance.

Report counts along with scores

Include the positive class, sample size, threshold, and the numbers of true positives, false positives and false negatives. State how you handled a run with no predicted positives or no actual positives, where a denominator can be zero. The counts help readers judge changes hidden by rounded percentages.

Related guides

Further reading. Scikit-learn precision definition.