save_pmml: Save a pmml object as an external PMML file.

View source: R/save_pmml.R

save_pmmlR Documentation

Save a pmml object as an external PMML file.

Description

Save a pmml object to an external PMML file.

Usage

save_pmml(doc, name)

Arguments

doc

The pmml model.

name

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

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 documentation built on March 18, 2022, 5:49 p.m.