Good Day,

I'm using the knn function in the package class. With k set to 3, the function returns proportions of 1/3, 0.5, 0.6, 2/3, 3/4, and 1.0 for the test cases. I don't understand how with k set to 3 the proportions can be anything other than 1/3, 2/3, or 1.0 I've seen similar inconsistencies with k set to 5.

R version 2.5.0 with redhat linux.

Thanks in advance.

Mike

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to