0% found this document useful (0 votes)
25 views

KNN Classify Example 1

Uploaded by

amarja.suyash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

KNN Classify Example 1

Uploaded by

amarja.suyash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

2
K = 15 K = 13 K = 11 K=9

1.2

1.2

1.2
1.0

1.0

1.0

1.0
0.8

0.8

0.8

0.8
0.6

0.6

0.6

0.6
x2

x2

x2

x2
0.4

0.4

0.4

0.4
0.2

0.2

0.2

0.2
0.0

0.0

0.0

0.0
−0.2

−0.2

−0.2

−0.2
0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0

x1 x1 x1 x1
Error rate: 30.4 % Error rate: 25.9 % Error rate: 24.1 % Error rate: 25.5 %

K=7 K=5 K=3 K=1


1.2

1.2

1.2

1.2
1.0

1.0

1.0

1.0
0.8

0.8

0.8

0.8
0.6

0.6

0.6

0.6
x2

x2

x2

x2
0.4

0.4

0.4

0.4
0.2

0.2

0.2

0.2
0.0

0.0

0.0

0.0
−0.2

−0.2

−0.2

−0.2
0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0

x1 x1 x1 x1
Error rate: 21 % Error rate: 20.1 % Error rate: 17.8 % Error rate: 14.8 %

You might also like