One Rule Inserter

This node inserts one specific rule into the given sets. A rule has the form of A=>B. In this case A and B are subparts of your list of items. (Please enter them as a list in the two text fields. There is no need for the items in B to be in one of the lists already. If the items in A are not in one of the lists, the node will just return the input data table.)

Options

Use seed
When enabled, a fixed seed is used to produce a deterministic result. When disabled, each execution may produce different results.
Seed
The random seed to produce a deterministic result. Only used when "Use seed" is enabled.
Draw seed
Generate a random seed and set it in the random seed input above for reproducible runs.
Prob(B|A)
The probability that item set B is inserted when item set A is found in the cell. This value reflects the confidence of the rule A => B. Must be between 0 and 1 (inclusive).
Fix list sizes
If selected, the node replaces other items in the set to make room for the items in B, keeping the list size constant. If not selected, items in B are simply appended to the end of the list, which may increase list sizes.
Collection
The column containing the list or set of items into which the rule will be inserted.
A
The item set A (each item on a new line). This is the antecedent of the rule A => B. You must ensure that the support of A is already present in your data. You can increase the support of an item set by using the Random Label Assigner (for table data) or the Random Item Inserter (for list data).
B
The item set B (each item on a new line). This is the consequent of the rule A => B. These items do not have to be in your item set already and will be inserted regardless.

Input Ports

Icon
Data containing one collection column.

Output Ports

Icon
Collection column with new rule magically inserted.

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.