Random Label Assigner (Data)

Assigns the labels based on the probabilities to the rows. For each row on the second input port a new string is created randomly. Distribution for this new class column (respectively the name of the class and the probabilities) is read from the table on the first input port.

Options

Column name
The name of the new string column that will be appended to the data table.
Name of category
The column of the first table containing the names of the categories.
Probability
The column of the first table containing the probabilities for each category.
Use seed
When enabled, a fixed seed is used to produce a deterministic result. When disabled, each execution may produce different random label assignments.
Seed
The random seed to produce a deterministic result. Only used when "Use seed" is enabled. You can enter a custom value or use the draw seed button.
Draw seed
Generate a random seed and set it in the seed input above for reproducible runs.

Input Ports

Icon
Should contain the class names (String) and probabilities for each class (Double).
Icon
Original Data.

Output Ports

Icon
The rows from the second input port with one additional column, containing the new classes.

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.