I am trying to find out how to determine / display the mode of the decision trees (used by Random Forest to make further predictions / assignments). I am using
library(randomForest) in R:
r <- randomForest(Species ~., data=train.set, importance=TRUE, do.trace=100, ntree=100)
I can extract a given tree using
t <- getTree(r, k=2) where
k is the tree number. However, in my understanding, Random Forest is using the mode of these trees to classify new items.
How can I access this, and perhaps display a final decision tree?