Active Learning Loop End

The Active Learning Loop is an extension to the regular Recursive Loop with an additional model port. It enables passing of a data table and an arbitrary model from the Active Learning Loop End back to the Active Learning Loop Start.

The Loop Start requires an initialized table and model, which will be output by the Active Learning Loop Start in the first iteration of the loop.

The table and model received by the corresponding Active Learning Loop End is passed back to the Active Learning Loop Start node. Starting with the second iteration, the Active Learning Loop Start node outputs the table and model as received by the Active Learning Loop End.

The loop runs until one of the three stopping criteria is met:

  • Maximum number of iterations: to ensure no endless loop is created, the loop will end after the set number of iterations.
  • Minimal number of rows: to ensure enough rows are present for processing, the loop stops if its input contains less rows than the set minimum.
  • End loop with variable: the loop ends if the option is enabled and the value of the selected variable equals "true"

The recursion model output (1) will always output the model from the last iteration connected to the recursion model input (1). While the loop is running, the model will be returned to the Active Learning Loop Start node. The table passed to the collecting table input (2) is collected and passed to the collected table output port (2). The table passed to the recursion table input (3) is returned to the Recursive Loop Start node during the iteration.

Options

Maximal number of iterations
The maximum number of iterations the loop will run.
Minimal number of rows
The minimal number of rows required to continue iterating.
End Loop with Variable
Whether to use a boolean Flow Variable as stopping criterion for the loop execution. When enabled, the loop will be terminated if the value of the selected variable is equal to "true".
Collect data from last iteration only
If this option is checked only the last table passed to the collecting table input is passed through to the collected table output (2). Hence, the data of earlier iterations is discarded. If this option is enabled, the "Add iteration column" will be ignored.
Add iteration column
Allows you to add a column containing the iteration number to the output table if rows should be collected in each loop iteration.

Input Ports

Icon
Model to be passed back to loop start.
Icon
Data (Rows) to be collected.
Icon
Table to be passed back to loop start.

Output Ports

Icon
The recursion model from the last iteration.
Icon
The rows collected from collecting table input (1).

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.