Using Macro value as Loop parameter iterations
Hello everybody,
today I needed the functionality of a simple FOR-loop in RapidMiner for the first time. So I took a look at the Loop operators and picked the simple "Loop". The number of iterations depends on some information extraction and preprocessing, so I prepared a nice attribute holding a number of type Integer for my loop. I just extract this cute litte Integer via "Extract Macro" and feed it into the iterations parameter of my "Loop" operator. But unfortunately the macro value seems to be of type Real and causes an error (extracted from value 5 of an integer attribute):
Message: A value for the parameter 'iterations' must be specified! Expected integer but found '5.0'.
I couldn't find a way to manipulate the data type of the macro, so I'm a bit perplexed. I can hardly believe that it's not possible to loop with a variable amount of iterations. I want to do something simple like for(i=1; i <= variableValue; i++). Is this currently not possible with "Loop" or am I completely off the track?
Kind regards,
Matthias
today I needed the functionality of a simple FOR-loop in RapidMiner for the first time. So I took a look at the Loop operators and picked the simple "Loop". The number of iterations depends on some information extraction and preprocessing, so I prepared a nice attribute holding a number of type Integer for my loop. I just extract this cute litte Integer via "Extract Macro" and feed it into the iterations parameter of my "Loop" operator. But unfortunately the macro value seems to be of type Real and causes an error (extracted from value 5 of an integer attribute):
Message: A value for the parameter 'iterations' must be specified! Expected integer but found '5.0'.
I couldn't find a way to manipulate the data type of the macro, so I'm a bit perplexed. I can hardly believe that it's not possible to loop with a variable amount of iterations. I want to do something simple like for(i=1; i <= variableValue; i++). Is this currently not possible with "Loop" or am I completely off the track?
Kind regards,
Matthias