Skip to main content

Table 2 Confusion matrix and performance evaluation metrics

From: Development and evaluation of a machine learning model for osteoporosis risk prediction in Korean women

(a) confusion matrix

  

Predicted class

Positive

Negative

Actual class

Positive

True positive

False negative

 

Negative

False positive

True negative

(b) Performance evaluation metrics

Matrics

Definition

Accuracy

(TP + TN) / (TP + FP + FN + TN)

Precision

TP / (TP + FP)

Recall

TP / (TP + FN)

F1 score

2 × ((Recall × Precision))/(Recall + Precision)

  1. FN, false negative; FP, false positive; TN, true negative; TP, true positive