Synopsis
This operator can be used to define arbitrary macros which can be used by %{my_macro} in parameter values.
Description
(Re-)Define macros for the current process. Macros will be replaced in the value strings of parameters by the macro values defined in the parameter list of this operator.
In the parameter list of this operator, you have to define the macro name (without the enclosing brackets) and the macro value. The defined macro can then be used in all succeeding operators as parameter value for string type parameters. A macro must then be enclosed by "MACRO_START" and "MACRO_END".
There are several predefined macros:
- MACRO_STARTprocess_nameMACRO_END: will be replaced by the name of the process (without path and extension)
- MACRO_STARTprocess_fileMACRO_END: will be replaced by the file name of the process (with extension)
- MACRO_STARTprocess_pathMACRO_END: will be replaced by the complete absolute path of the process file
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. MACRO_STARTaMACRO_END for the number of times the current operator was applied. Please refer to the section about macros in the RapidMiner tutorial. Please note also that other operators like the FeatureIterator also add specific macros.
Input
- through 1:
Output
- through 1:
Parameters
- macros: The list of macros defined by the user.