hi, r users i have a problem with KNN. i have 2 datasets, X0 and X1.>dim(X0) >1471*13dim(X1)>5221*13and 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.
Thank your for your entry in the Poorly Capitalized and Inadequately Searched Posting Contest. You will be advised of your ranking in due course. In the meantime, you may want to consult the recommended search site for []functions and []Task Views that have "clustering" and "classification" in their text: http://search.r-project.org/cgi-bin/namazu.cgi?query=classification+clustering&max=100&result=normal&sort=score&idxname=functions&idxname=views I originally set the parameters at just "classification" in []Task Views and []functions but that list was too long. -- David. On Aug 31, 2011, at 10:35 AM, jiliguala wrote:> > 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 at 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.David Winsemius, MD West Hartford, CT
help, help ,help!!! -- View this message in context: http://r.789695.n4.nabble.com/function-to-do-the-knn-tp3781137p3781738.html Sent from the R help mailing list archive at Nabble.com.
And with this one the OP won the contest David talked about with a highscore. Uwe Ligges On 31.08.2011 19:35, jiliguala wrote:> help, help ,help!!! > > -- > View this message in context: http://r.789695.n4.nabble.com/function-to-do-the-knn-tp3781137p3781738.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at 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.
On 08/31/2011 02:55 PM, David Winsemius wrote:> Thank your for your entry in the Poorly Capitalized and Inadequately > Searched Posting Contest. You will be advised of your ranking in due > course. In the meantime, you may want to consult the recommended > search site for []functions and []Task Views that have "clustering" > and "classification" in their text: > > http://search.r-project.org/cgi-bin/namazu.cgi?query=classification+clustering&max=100&result=normal&sort=score&idxname=functions&idxname=views > > > I originally set the parameters at just "classification" in []Task > Views and []functions but that list was too long. >Candidate for fortunes? Paul -- Paul Hiemstra, Ph.D. Global Climate Division Royal Netherlands Meteorological Institute (KNMI) Wilhelminalaan 10 | 3732 GK | De Bilt | Kamer B 3.39 P.O. Box 201 | 3730 AE | De Bilt tel: +31 30 2206 494 http://intamap.geo.uu.nl/~paul http://nl.linkedin.com/pub/paul-hiemstra/20/30b/770
Hi Try to call 112 if you are in Europe. Regards Petr> Re: [R] !!!function to do the knn!!! > > help, help ,help!!! > > -- > View this message in context: http://r.789695.n4.nabble.com/function-to- > do-the-knn-tp3781137p3781738.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html> and provide commented, minimal, self-contained, reproducible code.
I would nominate the following fortune: On Thu, Sep 1, 2011 at 12:16 PM, Petr PIKAL <petr.pikal at precheza.cz> wrote:> Try to call 112 if you are in Europe. >David Winsemius: Thank your for your entry in the Poorly Capitalized and Inadequately Searched Posting Contest. mark: help, help ,help!!! Petr PIKAL: Try to call 112 if you are in Europe. Liviu
really thxs to David Winsemius.. this websits helps a lot, -- View this message in context: http://r.789695.n4.nabble.com/function-to-do-the-knn-tp3781137p3786251.html Sent from the R help mailing list archive at Nabble.com.