Re: [R] Random Forest confusion matrix

2009-02-26 Thread Gabor Grothendieck
randomForest output is based on predict(iris.rf) whereas the code shown below uses predict(iris.rf, iris). See ?predict.randomForest for an explanation. On Thu, Feb 26, 2009 at 11:10 AM, Li GUO wrote: > Dear R users, > > I have a question on the confusion matrix generated by function randomFores

[R] Random Forest confusion matrix

2009-02-26 Thread Li GUO
Dear R users, I have a question on the confusion matrix generated by function randomForest. I used the entire data set to generate the forest, for example: > print(iris.rf) Call: randomForest(formula = Species ~ ., data = iris, importance = TRUE, keep.forest = TRUE) confusion