Skip to main content
. 2023 Apr 13;24(8):7207. doi: 10.3390/ijms24087207

Table 5.

(a) Confusion matrix; (b) Formula for evaluation metrics.

(a) Confusion Matrix, contains 4 different values (FP, TP, FN, TN) for evaluating the performance of classification models when the predictive scores are binary (represented as zeros and ones).
Actual
Positive (1) Negative (0)
Predicted Positive (1) TP TN
Negative (0) FP FN
(b) Evaluation metric to assess the performance of the models using accuracy, precision (positive predictive value—PPV), recall (sensitivity), and F-Score (a harmonic mean of sensitivity).
Evaluation Metric Formulation
Accuracy  TP + TNN
PPV TPTP + FP 
Recall TPTP + FN 
F-Score 2  TP2  TP + FP + FN 

Abbreviations: TP, True Positive; TN, True Negative; N, total number of genes in the database; FP, False Positive; FN, False Negative; N, total number of samples.