Skip to main content
. 2021 Sep 30;11:19428. doi: 10.1038/s41598-021-98599-0

Table 4.

Confusion matrix for a two-class problem.

Positive Negative
Positive

True positive (TP)

Number of samples that are Positive and classifier predicts Positive

False negative (FN)

Number of samples that are Positive while classifier predicts Negative

Negative

False positive (FP)

Number of samples that are Negative while classifier predicts Positive

True negative (TN)

Number of samples that are Negative and classifier predicts Negative