pmml {pmml} | R Documentation |
'pmml' is a generic function implementing S3 methods used to produce the PMML (Predictive Model Markup Language) representation of an R model. The PMML can then be imported into other systems that accept PMML.
pmml(model, model.name="Rattle_Model", app.name="Rattle/PMML", description=NULL, copyright=NULL, transforms=NULL, ...)
model |
an object to be converted to PMML. |
model.name |
a name to give to the model in the PMML. |
app.name |
the name of the application that generated the PMML. |
description |
a descriptive text for the header of the PMML. |
copyright |
the copyright notice for the model. |
transforms |
a coded list of transforms performed. |
... |
further arguments passed to or from other methods. |
The generated PMML can be imported into any PMML consuming application, such as Teradata Warehouse Miner and DB2. Generally, these applications convert the PMML into SQL for execution across a database.
Package home page: http://rattle.togaware.com
PMML home page: http://www.dmg.org
pmml.kmeans
,
pmml.rpart
,
pmml.rsf
.
# Build a simple lm model (iris.lm <- lm(Sepal.Length ~ ., data=iris)) # Convert to pmml pmml(iris.lm)