[R] [randomForest]: display decision trees

Christian Sturz linuxkaffee at gmx.net
Thu Oct 9 00:08:30 CEST 2008


Hi,

I'm using the package randomForest to generate a classifier for the exemplary
iris data set:

data(iris)
iris.rf<-randomForest(Species~.,iris)

Is it possible to print all decision trees in the generated forest?
If so, can the trees be also written to disk?

What I actually need is to translate the decision trees in a random forest
into equivalent C++ if-then-else constructs to integrate them in a C++
project. Have this been done in the past and are there already any
implemented approaches/parser for that?

Cheers,
Chris
-- 

http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196



More information about the R-help mailing list