machine learning - kNN result on same distant datapoints with opposed classes -


using 1-nn , 3-nn (euclidean distance knn) in conjunction using leave_one_out cross validation, cv error on data points? note error of each written in parentheses

image of datapoints=two class case

1) 1-nn(0.1) , 3-nn(0.1)

2) 1-nn(0.1) , 3-nn(0.5)

3) 1-nn(0.5) , 3-nn(0.1)

4) 1-nn(0.5) , 3-nn(0.5)

apparently right answer 3-rd one, i’m baffled , can’t figure out why? can explain how?


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -