[R] use classificators learned in R in "real-life", e.g. C

Max Kuhn mxkuhn at gmail.com
Mon Feb 4 14:56:59 CET 2008


On Feb 3, 2008 2:16 PM,  <sich at gmx.de> wrote:
> Hi there,
> I am interested in using R for machine learning (supervised classification).
> Currently, I have been investigating especially the rpart, tree, and randomForest package, and have achieved first results.
>
> are there any experiences, how the learned classificators could
> be used in e.g. C ?
> in other words, I want to "transfer" the learned predictor from R
> to C-code.
>

I don't know of any automated way to do this for those models, but the
MARS model in the earth package can export a C-friendly version of the
prediction function. See ?format.earth for details. The bagged MARS
model in the caret package does the same (see ?format.bagEarth).

Max


-- 

Max



More information about the R-help mailing list