Skip to content

Classification Trees and basic Random Forest pkg using t ree structures in C

3 messages · Liaw, Andy, Torsten Hothorn, Hin-Tak Leung

#
Isn't it a bit too much to assume that everyone has a personal web space
somewhere?
For some of the data we encounter, all X variables are binary, so each data
point can be encoded into a bitstring.  There are algorithms that take
advantage of that.  The problem is interfacing such code with R.  I know of
no good solutions.  As I told Grant, I thought about what he did, too, but
the difficulty is how to pass such data structures to R.  Actually, some
time down the road I might try to use the dendrogram class that's in R, and
manipulate them in C.  Not sure about efficiency though. 

Andy
2 days later
#
On Fri, 4 Nov 2005, Liaw, Andy wrote:
I faced similar problems some time ago and ended up representing a
(binary) tree as recursive lists which can be manipulated from both the C
and R side. The `party' package has the code (and an internal random
forest function, however, without R interface yet) and the vignette
explains some details.

Best,

Torsten
#
Liaw, Andy wrote:
<snipped>
Just for the sake of argument... I did assume that nih.gov is a sizeable
government organization and have official channnels for such things.
That's what government agencies do, and I suppose this software work is
in-the-line-of-duty for public consumption and therefore quite 
appropriate to put on a *.gov web site. (the same applies to *.ac.uk and 
  *.edu postings).
The best examples I have seen of manipulating foreign object is among 
the omegahat projects, like RSPerl and PSPython. Quite insteresting reading.

Hin-Tak Leung