Moving a stated threshold changes class labels by exact comparison. This lesson shows the same score list under two thresholds and recomputes the resulting class counts.
highlighted = computed this step
Start with displayed scores
Use the exact score list -2, -1, 1, and 3. The policy is score at least threshold gives class 1; otherwise class 0.
scores=(−2,−1,1,3)
Compare two thresholds
At threshold 0, the class labels are 0, 0, 1, 1. At threshold 2, the labels are 0, 0, 0, 1.
t=0:0011,t=2:0001
Counts change too
With threshold 0, the counts are class 0: 2 and class 1: 2. With threshold 2, the counts are class 0: 3 and class 1: 1. This is threshold bookkeeping on the displayed scores only.