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

make_output_nodes

Add Output nodes to a PMML object.


Description

Add Output nodes to a PMML object.

Usage

make_output_nodes(
  name = "OutputField",
  attributes = NULL,
  expression = NULL,
  namespace = "4_4"
)

Arguments

name

The name of the element to be created.

attributes

The node attributes to be added.

expression

Post-processing information to be included in the element. This expression will be processed by function_to_pmml.

namespace

The namespace of the PMML model.

Details

Create a list of nodes with names 'name', attributes 'attributes' and child elements 'expression'. 'expression' is a string converted to XML similar to function_to_pmml.

Meant to create OutputField elements, 'expressions' can be used to add post-processing transformations to a model. To create multiple such nodes, all the parameters must be given as lists of equal length.

Value

List of nodes

Author(s)

Tridivesh Jena

Examples

# Make two nodes, one with attributes
two_nodes <- make_output_nodes(
  name = list("OutputField", "OutputField"),
  attributes = list(list(name = "dbl", optype = "continuous"), NULL),
  expression = list("ln(x)", "ln(x/(1-x))")
)

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.