RE: [R] Interpreting knn Results

2004-03-29 Thread Liaw, Andy
Maybe you should show your colleague how to access help pages in R? Right in ?knn, it says: prob: If this is true, the proportion of the votes for the winning class are returned as attribute 'prob'. so 1.0 mean all three NNs are of the `winning'; i.e., predicted, class, and

RE: [R] Interpreting knn Results

2004-03-29 Thread Ko-Kang Kevin Wang
Hi, -Original Message- From: Liaw, Andy [mailto:[EMAIL PROTECTED] Maybe you should show your colleague how to access help pages in R? Right in ?knn, it says: prob: If this is true, the proportion of the votes for the winning class are returned as attribute 'prob'.

[R] Interpreting knn Results

2004-03-28 Thread Ko-Kang Kevin Wang
Hi, [I'm posting this on behalf of a colleague -- as I don't know knn myself...] How to interpret the knn() results? Tried the example codes in the documentation: data(iris3) train - rbind(iris3[1:25,,1], iris3[1:25,,2], iris3[1:25,,3]) test - rbind(iris3[26:50,,1],