background image

63 

 

K-nearest neighbours: 

Table 23: knn on the multiclass training set 

 

precision  recall  f1-score  support 

back 

0.95 

0.96 

0.96 

949 

buffer_overflow  0.00 

0.00 

0.00 

ftp_write 

0.00 

0.00 

0.00 

guess_passwd 

0.92 

0.70 

0.80 

70 

imap 

0.00 

0.00 

0.00 

ipsweep 

0.94 

0.98 

0.96 

3451 

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 

41898 

nmap 

0.96 

0.95 

0.95 

1514 

normal 

1.00 

0.99 

0.99 

67620 

perl 

0.00 

0.00 

0.00 

phf 

0.00 

0.00 

0.00 

pod 

0.99 

0.99 

0.99 

201 

portsweep 

0.85 

0.99 

0.92 

2529 

rootkit 

0.00 

0.00 

0.00 

satan 

0.92 

0.98 

0.95 

3400 

smurf 

1.00 

0.99 

0.99 

2680 

spy 

0.00 

0.00 

0.00 

teardrop 

0.99 

1.00 

1.00 

884 

warezclient 

0.84 

0.96 

0.90 

777 

warezmaster 

0.00 

0.00 

0.00 

 

 

 

 

 

accuracy 

 

 

0.99 

125973 

macro avg 

0.49 

0.50 

0.50 

125973 

weighted avg 

0.99 

0.99 

0.99 

125973