hi, r users 

i have a problem with KNN.

i have 2 datasets, X0 and X1.

>dim(X0)
>1471*13

dim(X1)
>5221*13

and for every instances in the dataset X1, i want to find the nearest
neighbour(1nn) in the dataset X0.
and i dont have the true classifications of dataset X1.
but the function knn() need true classifications(cl) to do prediction.
i just curious if there are some other function can do that.

any ideas are appreciated.

mark 





--
View this message in context: 
http://r.789695.n4.nabble.com/function-to-do-the-knn-tp3781137p3781137.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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