Is it possible to loop over processes in a repository?
Let me give you the context of my question. I'm adapting Fabian Temme's (or Thomas Ott's? I wasn't clear) nice blog entry on Model Management.
I have a collection of processes in a folder named "Algorithms". All of them are processes that take the same dataset and produce the same outputs (model, performance).
I would like to write another process that would loop over the repository of processes and execute them all. Currently my process looks like this:
I want to extend my example to 15-20 different processes with different parameters. Any chance I can loop thru them? I tried "Loop Repository" but couldn't make it work.
Thanks in advance for any help,
\E
Best Answer
-
kayman Member Posts: 662 Unicorn
What if you create an example set (like an external csv or so), which has your process names as values, and you loop through that one? Using an extract macro you can then get the name of your process, and use that as an input to call your process. You could either call it directly or use it as a trigger in a branched process loop.
Not very elegant but it should do the job I believe.
0
Answers
Hi \E,
looping over processes can only be done with a workaround. Unfortunately, there is no built-in solution for that.
The attached process works if you have the processes on a local filesystem - Not on RapidMiner Server.
Do not store the process in the folder you want to execute - otherwise you might run into issues.
Best,
Edin
to make it easier what @kayman suggested, you can use some operators from operator toolbox extension , please explore the "create exampleset" -- here you can add a list of process you want to execute
Also there are operators to set parameters using exampleset, set macros using exampleset,
Kayman, Edin, Bhupendra:
All of your suggestions work perfectly. Thank you very much for your time.
Regards,
\E