A classifier does not output a decision. It outputs a score, and a threshold turns the score into a decision. Move the cut through the ranked documents below and watch every measure change at once: the four outcomes, precision, recall, and the point you are at on the ROC and precision-recall curves. The numbers come from classification.py, so they match the chapter.
the rare class (what we are looking for) everything else. Outlined documents are the ones flagged.
This is Text Classification, the section on thresholds. Run classification.py to print the same tables as text, or score a classifier yourself in Project 5.