Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

save_pmml

Save a pmml object as an external PMML file.


Description

Save a pmml object to an external PMML file for more efficient further processing.

Usage

save_pmml(doc, name, version = 4.4)

Arguments

doc

The pmml model.

name

The name of the external file where the PMML is to be saved.

version

The PMML version with which the PMML model is compliant.

Author(s)

Tridivesh Jena

Examples

## Not run: 
# Make a gbm model:
library(gbm)
data(audit)

mod <- gbm(Adjusted ~ .,
  data = audit[, -c(1, 4, 6, 9, 10, 11, 12)],
  n.trees = 3,
  interaction.depth = 4
)

# Export to PMML:
pmod <- pmml(mod)

# Save to an external file:
save_pmml(pmod, "GBMModel.pmml")

## End(Not run)

pmml

Generate PMML for Various Models

v2.4.0
GPL-3 | file LICENSE
Authors
Dmitriy Bolotov [aut, cre], Tridivesh Jena [aut], Graham Williams [aut], Wen-Ching Lin [aut], Michael Hahsler [aut], Hemant Ishwaran [aut], Udaya B. Kogalur [aut], Rajarshi Guha [aut], Software AG [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.