## S3 method for class 'randomForest':
pmml(model, model.name="randomForest_Model",
app.name="Rattle/PMML",
description="Random Forest Tree Model",
copyright = NULL,
transforms = NULL, ...)forest object contained in an object of class
randomForest.XMLNode as that defined by the saveXML. Use of PMML and pmml.randomForest requires the
This function is used to export the structure of the forest to other PMML compliant applications, including graphics packages that are capable of printing binary trees.
PMML home page:
A. Guazzelli, W. Lin, T. Jena (2012), /emph{PMML in Action: Unleashing the Power
of Open Standards for Data Mining and Predictive Analytics}. CreativeSpace
(Second Edition - Available on Amazon.com -
A. Guazzelli, M. Zeller, W. Lin, G. Williams (2009), /emph{PMML: An Open Standard for Sharing Models}. The R journal, Volume 1/1, 60-65
pmml.# Build a simple randomForest model
library(randomForest)
(iris.rf <- randomForest(Species ~ ., data=iris, ntree=2))
# Convert to pmml
pmml(iris.rf)Run the code above in your browser using DataLab