Extract Macro


Synopsis

This operator can be used to define a single macro which can be used by %{my_macro} in parameter values. The macro value will be derived from the input


Description

This operator (re-)defines a macro for the current process. Macros will be replaced in the value strings of parameters by the macros' values, see Macros section below. In contrast to the usual Set Macro operator, this operator sets the value of a single macro from properties of a given input ExampleSet, e.g. from properties like the number of examples or attributes or from a specific data value. The name of the macro must be specified in the macro parameter and the way the value is retrieved from the ExampleSet must be chosen from macro_type.


Macros

A defined macro can then be used in all succeeding operators as parameter value for parameters. A macro must then be enclosed by "%{" and "}".

There are several predefined macros:

In addition to those the user might define arbitrary other macros which will be replaced by arbitrary string during the process run. Please note also that several other short macros exist, e.g. %{a} for the number of times the current operator was applied. Please note also that other operators like many of the loop operators like Loop Values or Loop Attributes also add specific macros.


Input


Output


Parameters


ExampleProcess