I developed a Random Forest regression algorithm in R using CARET. I need to export the algorithm as universal data-type (for instance xml), so it can be implemented on a different platform.
So far, I found this thread where pmml
is recommanded to get a xml, but it only works if one has a "Random Forest formula" (results from function RandomForest). However, it does not lead me to equal performance as I used caret::train
, which results into a "large train object"
I found another package r2pmml
, which shall convert my model into a pmml but I cannot install the package (probably outdated, as I cannot install from repository or on other Rstudio versions).
Here is how I create my regression model
rf.model.tuned <- train(response ~ ., data = training,
method = "rf", importance=TRUE,
trControl = trainControl (method= "repeatedcv",
number=5, repeats = 5))
Anyone an idea how I can use regression models outside the R environment?
pmml
package: cran.r-project.org/web/packages/pmml/index.html – emilliman5r2pmml
is different thanpmml
– emilliman5