"How to set process inputs using macros?"

excessukexcessuk MemberPosts:3Contributor I
edited June 2019 inHelp
Hi,

Apologies if this question has been asked before - I search the forums exhaustively but couldn't find the answer to my question.

我创建了一个过程ss which uses macros to filter the resulting data, and that's working fine, I think I got the hang of how macros work. However now I need to change the input of the process using a macro too and I can't figure out how to do it? Basically I have lots of example sets having exactly the same metadata, so instead of creating one process per example set I wanted to use the same process but change the process input using a macro.

Say my example sets are called "Data_SomeName_101", "Data_SomeName_102", etc. I want to have a macro called "input" and pass the value "Data_SomeName_101" (or whatever the example set is called) and have the process recognise that as an input.

Does anyone know how to do that?

Thanks in advance and happy new year!

Marcelo
Tagged:

Answers

  • MariusHelfMariusHelf RapidMiner Certified Expert, MemberPosts:1,869Unicorn
    Hi Marcelo,

    you can wrap your process in a Loop operator like in the process below, activate the option "set iteration macro" and then use the macro to assemble the name of the input data. Have a look at the process below.

    You could also use the Execute Process operator and embed it into another process which executes the loop, and pass macros via the macros parameter of that operator.

    Best regards,
    Marius





    <宏/ >























Sign InorRegisterto comment.