[R] Interpreting knn Results

Ko-Kang Kevin Wang k.wang at auckland.ac.nz
Mon Mar 29 13:33:46 CEST 2004


Hi,

> -----Original Message-----
> From: Liaw, Andy [mailto:andy_liaw at merck.com]
> 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
> 0.66667 means 2 out of the 3 NNs are of the winning class, etc.

Whoops sorry, I guess I should've known that *_*.  She lost access to
her email due to a technical problem and I was running to a tutorial
so didn't have time to think.  After my tutorial I looked at the
results with her and figured it out....*_*

Thanks,

Kevin




More information about the R-help mailing list