background image

59 

 

Table 13: logistic regression on the binary training set 

 

 

 

 

 

Table 14: logistic regression on the binary test set (validation) 

 

precision  recall  f1-score  support 

abnormal 

0.62 

0.92 

0.74 

8713 

normal 

0.93 

0.65 

0.76 

13831 

 

 

 

 

 

accuracy 

 

 

0.75 

22544 

macro avg 

0.77 

0.78 

0.75 

22544 

weighted avg  0.81 

0.75 

0.76 

22544 

 

Table 15: logistic regression on the 4-class training set 

 

precision  recall  f1-score  support 

DoS 

1.00 

1.00 

1.00 

45984 

Probe 

0.96 

0.98 

0.97 

11497 

R2L 

0.80 

0.82 

0.81 

968 

U2R 

0.54 

0.88 

0.67 

32 

normal 

0.99 

0.99 

0.99 

67492 

 

 

 

 

 

accuracy 

 

 

0.99 

125973 

macro avg 

0.86 

0.93 

0.89 

125973 

weighted avg  0.99 

0.99 

0.99 

125973 

 

Table 16: logistic regression on the 4-class test set (validation) 

 

precision  recall  f1-score  support 

DoS 

0.84 

0.92 

0.88 

6789 

Probe 

0.71 

0.86 

0.78 

2005 

R2L 

0.04 

0.50 

0.08 

238 

U2R 

0.34 

0.74 

0.47 

31 

normal 

0.93 

0.67 

0.78 

13481 

 

 

 

 

 

accuracy 

 

 

0.76 

22544 

macro avg 

0.57 

0.74 

0.60 

22544 

weighted avg  0.87 

0.76 

0.80 

22544 

 

 

 

precision  recall  f1-score  support 

abnormal 

0.97 

0.98 

0.97 

57838 

normal 

0.98 

0.97 

0.98 

68135 

 

 

 

 

 

accuracy 

 

 

0.97 

125973 

macro avg 

0.97 

0.97 

0.97 

125973 

weighted avg  0.97 

0.97 

0.97 

125973