Random Label Assigner

Assigns the labels based on the probabilities to the rows. Here we use the class names and the probabilities given in the dialog to assign the new class column. Categories with empty names or a probability less or equal to 0 are ignored.

Options

Column name
The name for the generated column.
Use seed
When enabled, the random number generation will use a fixed seed value, making the randomization reproducible across multiple executions. When disabled, each execution will produce different random results.
Random seed
The seed value used for random number generation. Use the same seed to get identical random number results across multiple executions. You can enter a custom value or use the random seed generation button below.
Draw seed
Generate a random seed and set it in the Random seed input above for reproducible runs.
Normalize probabilities
Normalize the probabilities for the label assignments
Label Probabilities
The label probabilities to be assigned. Each entry consists of the following fields:
  • Category: The name of the category or label to be assigned. Categories with empty names are ignored.
  • Probability: The probability for this category. Probabilities which are zero or less are ignored.

Input Ports

Icon
Simply data, (as the node does not use any information in this data, there are no constraints).

Output Ports

Icon
The original data with one new string column.

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.