Re: [Rd] Classification Trees and basic Random Forest pkg using tree structures in C

From: Torsten Hothorn <Torsten.Hothorn_at_rzmail.uni-erlangen.de>
Date: Mon 07 Nov 2005 - 08:20:32 GMT

On Fri, 4 Nov 2005, Liaw, Andy wrote:
>
> 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.

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

> Not sure about efficiency though.
>
> Andy
>
>
> > Hin-Tak Leung
> >
> > ______________________________________________
> > R-devel@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
> >
> >
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon Nov 07 19:25:57 2005

This archive was generated by hypermail 2.1.8 : Mon 07 Nov 2005 - 11:21:03 GMT