Andrew Crane-Droesch
2015-Nov-11 17:25 UTC
[R] R packages/code for CART that is written entirely in R (not C)
Dear List, I'd like to make a few modifications to the typical CART algorithm, and I'd rather not code the whole thing from scratch. Specifically I want to use different in-sample and out-of-sample fit criteria in the split choosing and cross-validation stages. I see however that the code for CART in both the rpart and the tree packages is written in C. Two questions: * Where is the C code? It might be possible to get a C-fluent programmer to help me with this. * Is there any code for CART that is written entirely in R? Thanks, Andrew [[alternative HTML version deleted]]
David Winsemius
2015-Nov-11 19:00 UTC
[R] R packages/code for CART that is written entirely in R (not C)
> On Nov 11, 2015, at 9:25 AM, Andrew Crane-Droesch <andrewcd at gmail.com> wrote: > > Dear List, > > I'd like to make a few modifications to the typical CART algorithm, and > I'd rather not code the whole thing from scratch. Specifically I want > to use different in-sample and out-of-sample fit criteria in the split > choosing and cross-validation stages. > > I see however that the code for CART in both the rpart and the tree > packages is written in C. > > Two questions: > > * Where is the C code? It might be possible to get a C-fluent > programmer to help me with this. > * Is there any code for CART that is written entirely in R?Read: "R Help Desk: Accessing the Sources? by Uwe Ligges in: https://www.r-project.org/doc/Rnews/Rnews_2006-4.pdf The current sources are here: https://svn.r-project.org/R/trunk/> > Thanks, > Andrew > > [[alternative HTML version deleted]]For future questions, this is a plain text mailing list.> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.? David Winsemius Alameda, CA, USA
Andrew Crane-Droesch
2015-Nov-11 19:26 UTC
[R] R packages/code for CART that is written entirely in R (not C)
Thanks for the reference! I'd still be grateful for any pointers towards code for CART that has been written entirely in R, perhaps that hasn't made its way onto CRAN. On 11/11/2015 02:00 PM, David Winsemius wrote:>> On Nov 11, 2015, at 9:25 AM, Andrew Crane-Droesch <andrewcd at gmail.com> wrote: >> >> Dear List, >> >> I'd like to make a few modifications to the typical CART algorithm, and >> I'd rather not code the whole thing from scratch. Specifically I want >> to use different in-sample and out-of-sample fit criteria in the split >> choosing and cross-validation stages. >> >> I see however that the code for CART in both the rpart and the tree >> packages is written in C. >> >> Two questions: >> >> * Where is the C code? It might be possible to get a C-fluent >> programmer to help me with this. >> * Is there any code for CART that is written entirely in R? > Read: "R Help Desk: Accessing the Sources? by Uwe Ligges in: > > https://www.r-project.org/doc/Rnews/Rnews_2006-4.pdf > > The current sources are here: > > https://svn.r-project.org/R/trunk/ > > >> Thanks, >> Andrew >> >> [[alternative HTML version deleted]] > For future questions, this is a plain text mailing list. > >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > ? > David Winsemius > Alameda, CA, USA >