Skip to main content

Table 2 The calculation formula for the evaluation metric of the binary classification model

From: On the combination of data augmentation method and gated convolution model for building effective and robust intrusion detection

Metric

Formula

Precision

\(Precision = \frac {{TP}}{{TP + FP}}\)

Recall

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

FPR

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

TNR

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

F1−score

\(F{\mathrm {1 - }}score = \frac {{2TP}}{{2TP + FP + FN}}\)

Accuracy

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