background image

80 

 

Table 55: knn on the split binary training set 

 

precision  recall  f1-score  support 

abnormal 

0.99 

0.99 

0.99 

46759 

normal 

0.99 

0.99 

0.99 

54019 

 

 

 

 

 

accuracy 

 

 

0.99 

100778 

macro avg 

0.99 

0.99 

0.99 

100778 

weighted avg  0.99 

0.99 

0.99 

100778 

 

Table 56: knn on the split binary test set (validation) 

 

precision  recall  f1-score  support 

abnormal 

0.99 

0.99 

0.99 

11691 

normal 

0.99 

0.99 

0.99 

13504 

 

 

 

 

 

accuracy 

 

 

0.99 

25195 

macro avg 

0.99 

0.99 

0.99 

25195 

weighted avg  0.99 

0.99 

0.99 

25195 

 

Table 57: knn on the split 4-class training set 

 

precision  recall  f1-score  support 

DoS 

1.00 

0.98 

0.99 

37360 

Probe 

0.92 

0.99 

0.96 

8647 

R2L 

0.81 

0.94 

0.87 

676 

U2R 

0.00 

0.00 

0.00 

normal 

1.00 

0.99 

0.99 

54095 

 

 

 

 

 

accuracy 

 

 

0.99 

100778 

macro avg 

0.75 

0.78 

0.76 

100778 

weighted avg  0.99 

0.99 

0.99 

100778 

 

Table 58: knn on the split 4-class test set (validation) 

 

precision  recall  f1-score  support 

DoS 

1.00 

0.98 

0.99 

9321 

Probe 

0.92 

0.99 

0.95 

2165 

R2L 

0.79 

0.92 

0.85 

183 

U2R 

0.00 

0.00 

0.00 

normal 

1.00 

0.99 

0.99 

13526 

 

 

 

 

 

accuracy 

 

 

0.99 

25195 

macro avg 

0.74 

0.78 

0.76 

25195 

weighted avg  0.99 

0.99 

0.99 

25195