The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"how to train a couple of classification models in a loop"
huaiyanggongzi
Member Posts: 39 Contributor II
At present, I heavily use Rapidminer to train classification model. Generally, the input is a collection of documents having been put into a folder. In other words, for each input, I have to run the workflow once. If I have a couple of input folders, how can I run this training process in a loop and save the built model with different names. Are there any examples that I can follow? Thanks.
Tagged:
0
Answers
Best regards,
Marius
macros are like global variables. You can define them manually with Set Macro. Some operators create macros automatically, amongst them many of the Loop operators.
Macros can be used in all parameters of all operators by surrounding the macro name with the percent sign and curly braces: %{myMacro}. In that case, before the operator is executed, the %{} construct is replaced with the current value of the macro, then the operator is processed as usual. Just experiment with e.g. Set Macro and Print to Console operators.
Here are two examples of using macros in a loop. The respective loop operators set some macro values in each iteration of the loop:
- http://rapid-i.com/rapidforum/index.php/topic,431.msg21409.html#msg21409
- http://rapid-i.com/rapidforum/index.php/topic,5601.msg19833.html#msg19833
If you have further questions, just come back here!
Best regards,
Marius