[R] randomForest predictions with new data
Uwe Ligges
ligges at statistik.tu-dortmund.de
Sun Apr 25 19:36:01 CEST 2010
On 25.04.2010 16:27, Rolf Edberg wrote:
> Hi
>
> I am new to R, randomForest and I have read about how to use it in your old
> mails. I have also run the predictions examples from CRAN. But I still don't
> understand how to use it right.
>
>
>
> The thing that I don't understand is how to run the result from the
> randomForest on one line (post) with newdata to get a good guess. What I
> mean is if I put in a new observation of iris how do I see what flower it
> is? And with what probability (proximity) is that guess?
>
>
See ?predict.randomForest
>
> I have taken a random post from iris database and taken the species data
> away and tried to use it as new data but I have not succeeded in finding out
> what species it is.
>
>
>
> How do I write that in R?
>
See ?predict.randomForest
>
> And how do I get the guess if it is a regression problem?
>
See ?predict.randomForest
>
> Is it possible to get it with unsupervised learning? One post with new data
> resulting in a good guess?
What? The Species? How should R know the species if it is unsupervised?
Best,
Uwe Ligges
>
>
> Thank you
>
> Rolf
>
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
More information about the R-help
mailing list