Research Article

Machine Learning for Predicting Hyperglycemic Cases Induced by PD-1/PD-L1 Inhibitors

Table 2

Confusion matrix and index formula.

Real YReal N

Predicted YTrue positive (TP)False positive (FP)
Predicted NFalse negative (FN)True negative (TN)

IndexFormula

Precision
Accuracy
Sensitivity (recall)
P(e)
Kappa((accuracy – P(e))/(1 – P(e)))
F1 score