[R] gbm package: plotting a single tree

From: ElenaC <ecouce_at_gmail.com>
Date: Tue, 24 May 2011 16:33:48 -0700 (PDT)


I'm not sure if Im posting this on the right place, my apologies if not.

I'm using the package gbm to generate boosted trees models, and was wondering if there is a simple way of getting a graphical output for a single tree of the sequence. I know the function "pretty.gbm.tree" can be used to print information for a single tree, but I've been unable to find a way to visualize this on a plot, similar to those that can be obtained by plot.rpart (in the rpart package).

Is there a method for doing these plots within the gbm package? If not, can the info for a single tree be converted into a different tree object with a method for plotting? (i.e., is it possible to convert the data into an object of class 'rpart'?)

Any help would be greatly appreciated!


View this message in context: http://r.789695.n4.nabble.com/gbm-package-plotting-a-single-tree-tp3548543p3548543.html
Sent from the R help mailing list archive at Nabble.com.

R-help_at_r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Wed 25 May 2011 - 00:25:21 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 25 May 2011 - 00:30:09 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive