Table 8 Binary classification and performance metrics.

From: An elegant intellectual engine towards automation of blockchain smart contract vulnerability detection

Parameter

Formula

Accuracy

\(Accuracy = \frac{TP + TN}{{TP + TN + FP + FN}} \times 100\)

Precision

\(\Pr ecision = \frac{TP}{{TP + FP}} \times 100\)

Recall

\({\text{Re}} call = \frac{TP}{{TP + FN}} \times 100\)

F1-score

\(F1 - score = \frac{{2 \times \Pr ecision \times {\text{Re}} call}}{{\Pr ecision + {\text{Re}} call}}\)

Area_Under_ROC (AUROC)

\(TPR = \frac{TP}{{TP + FN}}\)

\(FPR = \frac{FP}{{FP + TN}}\)