Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

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)) 

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×