Count TP, FN, FP, and TN with P as the positive class.
highlighted = computed this step
Count true positives
Treat P as the positive class. There are 0 true positives because no row is marked P.
Count false negatives
The P row is marked N, so FN is 1.
Count the N side
No N row is marked P, so FP is 0 and TN is 4.
FP=0,TN=4