background image

78 

 

K-nearest neighbours: 

Table 53: knn on the split multiclass training set 

 

precision  recall  f1-score  support 

back 

0.96 

0.96 

0.96 

760 

buffer_overflow  0.00 

0.00 

0.00 

ftp_write 

0.00 

0.00 

0.00 

guess_passwd 

0.97 

0.66 

0.79 

59 

imap 

0.00 

0.00 

0.00 

ipsweep 

0.93 

0.99 

0.96 

2728 

land 

0.00 

0.00 

0.00 

loadmodule 

0.00 

0.00 

0.00 

multihop 

0.00 

0.00 

0.00 

neptune 

1.00 

0.98 

0.99 

33544 

nmap 

0.96 

0.95 

0.95 

1217 

normal 

1.00 

0.99 

0.99 

54113 

perl 

0.00 

0.00 

0.00 

phf 

0.00 

0.00 

0.00 

pod 

0.99 

0.98 

0.98 

161 

portsweep 

0.84 

0.99 

0.91 

1961 

rootkit 

0.00 

0.00 

0.00 

satan 

0.92 

0.98 

0.95 

2726 

smurf 

1.00 

0.99 

0.99 

2171 

spy 

0.00 

0.00 

0.00 

teardrop 

0.99 

1.00 

1.00 

725 

warezclient 

0.84 

0.96 

0.90 

613 

warezmaster 

0.00 

0.00 

0.00 

 

 

 

 

 

accuracy 

 

 

0.99 

100778 

macro avg 

0.50 

0.50 

0.49 

100778 

weighted avg 

0.99 

0.99 

0.99 

100778