Is it possible to loop over processes in a repository?

earmijoearmijo MemberPosts:265Unicorn
edited November 2018 inHelp

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).

Screen Shot 2017-05-21 at 12.14.10 PM.png

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:

Screen Shot 2017-05-21 at 12.17.02 PM.png

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

  • kaymankayman MemberPosts:662Unicorn
    Solution Accepted

    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.

Answers

  • Edin_KlapicEdin_Klapic Moderator, Employee, RMResearcher, MemberPosts:299RM Data Scientist

    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





    <宏观os/>



    <运营商激活= " true " class = "并发性:循环_files" compatibility="7.5.001" expanded="true" height="82" name="Loop Files" width="90" x="112" y="34">












    <列出关键= "宏" / >















  • bhupendra_patilbhupendra_patil Administrator, Employee, MemberPosts:168RM Data Scientist

    使它更容易@kaymansuggested, 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,

  • earmijoearmijo MemberPosts:265Unicorn

    Kayman, Edin, Bhupendra:

    All of your suggestions work perfectly. Thank you very much for your time.

    Regards,

    \E

Sign InorRegisterto comment.