Re: [R] Dump decision trees of randomForest object

2008-10-10 Thread Liaw, Andy
Thu, 9 Oct 2008 14:38:44 -0400 > > Von: "Liaw, Andy" <[EMAIL PROTECTED]> > > An: "Christian Sturz" <[EMAIL PROTECTED]>, r-help@r-project.org > > Betreff: RE: [R] Dump decision trees of randomForest object > > > See the getTree() function in

Re: [R] Dump decision trees of randomForest object

2008-10-09 Thread Pedro.Rodriguez
-help@r-project.org Subject: Re: [R] Dump decision trees of randomForest object I've tried the getTree() function and printed a decision tree with print(). However, it seems to me that it's hard to parse this representation and translate it into equivalent if-then-else C constructs. Ar

Re: [R] Dump decision trees of randomForest object

2008-10-09 Thread Christian Sturz
Von: "Liaw, Andy" <[EMAIL PROTECTED]> > An: "Christian Sturz" <[EMAIL PROTECTED]>, r-help@r-project.org > Betreff: RE: [R] Dump decision trees of randomForest object > See the getTree() function in the package. Also, the source package > contains C code t

Re: [R] Dump decision trees of randomForest object

2008-10-09 Thread Liaw, Andy
See the getTree() function in the package. Also, the source package contains C code that does the prediction that you may be able to work from. Andy From: Christian Sturz > > Hi, > > I'm using the package randomForest to generate a classifier > for the exemplary > iris data set: > > data(ir

[R] Dump decision trees of randomForest object

2008-10-09 Thread Christian Sturz
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 translat