Can rxDForest models be exported in PMML

Summary
PMML is not supported.  Here is a workaround.

RevoScaleR's rxDTree objects can be coerced to rpart objects. (Note that rpart is a recommended package that you may need to load.)

 

 library(rpart)

method <- "class"

form <- Kyphosis ~ Number + Start

parms <- list(prior = c(0.8, 0.2), loss = c(0, 2, 3, 0),

split = "gini")

control <- rpart.control(minsplit = 5, minbucket = 2, cp = 0.01,

maxdepth = 10, maxcompete = 4, maxsurrogate = 5, 20 usesurrogate = 2, surrogatestyle = 0, xval = 0)

cost <- 1 + seq(length(attr(terms(form), "term.labels")))

rxDTreeObj <- rxDTree(formula = Kyphosis ~ Number + Start,

 data = kyphosis, method = method, parms = parms,

 control = control, cost = cost)

pmml(as.rpart(rxDTreeObj)) 
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.
Properties

Article ID: 3104232 - Last Review: 10/29/2015 06:51:00 - Revision: 1.0

Revolution Analytics

  • KB3104232
Feedback