Ruleset to Table

Converts PMML RuleSet models (with firstHit rule selection method) to table containing the rules. This table is suitable for the Rule Engine (Dictionary) node as a rule input (even with PMML output generation). Use cases for this node: Convert the PMML model to ordinary table to

  • concatenate different rule tables
  • (row) filter out certain outcomes
  • re-level/recode outcomes

Options

Split rules to condition and outcome columns
When checked, two columns will be created for the rules, "Condition" and "Outcome", otherwise the rules will reside in a single column, "Rule".
Add confidence and weight columns
From PMML the confidence and weight attributes are extracted and added as separate columns to the output table.
Add record count and number of correct statistics columns
In PMML, the "recordCount" and the "nbCorrect" attributes provide statistics about the input (training/test/validation) data. When checked, this information is extracted into "Record count" and "Number of correct" columns.
Use additional parentheses to document precedence rules
If checked, the output will contain additional parentheses around rule parts to clearly document operator precedence. For instance, NOT is a stronger operator than AND which is stronger than OR — using parentheses improves readability. This option does not change any rule logic.
Provide score distribution record count
When checked, information about the record count of score distribution is added to the output table. The column names are prefixed with the specified prefix.
Record count column name prefix
Column name prefix used for the score distribution record count columns in the output table.
Provide score distribution probability
When checked, information about the probabilities of score distribution is added to the output table. The column names are prefixed with the specified prefix.
Probability column name prefix
Column name prefix used for the score distribution probability columns in the output table.

Input Ports

Icon
The PMML RuleSet model.

Output Ports

Icon
The table contains the rules' text (in single (Rule) or two columns (Condition, Outcome), the rule Confidence and Weight information and optionally the Record count (for how many rows the ruleset matched when created) and Number of correct values

Views

This node has no views

Workflows

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.