scorecard_pmml {scorecard}R Documentation

Scorecard to PMML

Description

scorecard_pmml converts scorecard into PMML format.

Usage

scorecard_pmml(card, save_name = NULL, model_name = "scorecard",
  model_version = NULL, description = "scorecard", copyright = NULL)

Arguments

card

A data frame or a list of data frames. It's a scorecard object generated from the function scorecard.

save_name

A string. The file name to save scorecard. Defaults to None.

model_name

A name to be given to the PMML model.

model_version

A string specifying the model version.

description

A descriptive text for the Header element of the PMML.

copyright

The copyright notice for the model.

Examples

data("germancredit")
dtvf = var_filter(germancredit, y='creditability')
bins = woebin(dtvf, y='creditability')
card = scorecard2(bins, dtvf, y='creditability')

# export scorecard into pmml
cardpmml = scorecard_pmml(card)
# save pmml
# cardpmml = scorecard_pmml(card, save_name='scorecard', model_version='1.0')


[Package scorecard version 0.4.4 Index]