The confusion matrix tells the truth faster — step 5 of 7
An AI wrote this counter, but it swapped two conditions: false positives and false negatives are reading each other's rule. With this batch there are 2 false alarms and 1 missed fraud, but the code prints them backwards. Fix lines 3 and 4 so each cell uses its own rule.
Expected output:
false alarms (FP)=2, missed fraud (FN)=1
The break is on lines 3, 4 — but read the whole snippet first.