Learn R Programming

Causata (version 4.2-0)

ToPmml: Generates a PMML representation of a model.

Description

Encodes a glmnet model in a string of PMML text for importing into Causata.

Usage

"ToPmml"(model.definition, variable.definition, verbose=FALSE, ...)

Arguments

model.definition
An object from GlmnetModelDefinition.
variable.definition
An object from VariableDefinition.
verbose
If TRUE then translation information is printed to the console.
...
Extra unused arguments.

Value

Returns an object with classes from the XML package. The classes are XMLInternalElementNode, XMLInternalNode, and XMLAbstractNode.Use print with this object to return a string of PMML text, and saveXML to write the PMML to a file.

Details

The PMML text string can be written to a file using the saveXML function from the XML package.

See Also

UploadModel, ModelDefinition, VariableDefinition, saveXML.