Options

[solved] Can I pass locations of data files via command line?

DominicDominic Member Posts: 3 Contributor I
edited November 2018 in Help
Hi everyone,

I was wondering whether I can pass multiple arguments to RapidMiner via command line. That is, besides the process to be executed, I would like to pass for example names of .csv files that contain the data the process will operate on. Is this possible?

If so, how do I access the passed filenames from inside the process?

Thanks in advance,
Dominic

Answers

  • Options
    SkirzynskiSkirzynski Member Posts: 164 Maven
    Hey,

    as far as i know there is no such way. For my diploma thesis i took the source code and wrote a mechanism where you can pass macros to the process through the command line. These macros can be used in the process as filename for example. If you like to program and need this feature right now: try this approach!

    I will see if i can push my patch to the trunk in the source code.

    Best
     Marcin
  • Options
    DominicDominic Member Posts: 3 Contributor I
    Thanks, guess I'll just work around that for now.
    Marcin wrote:

    I will see if i can push my patch to the trunk in the source code.
    Great, so one of the next releases will support your macro-based approach? Can you post back here, when it has been included?
  • Options
    SkirzynskiSkirzynski Member Posts: 164 Maven
    Yes, it should be on sourceforge today (or not later than this weekend) and in the next release. If you need it right now i can provide you a patch file.

  • Options
    SkirzynskiSkirzynski Member Posts: 164 Maven
    I have added "the feature" a few seconds ago to the trunk of RapidMiner. It is already synchronized with sourceforge, so you can checkout the source, build it with "ant createJar" and use it like this (if you use Linux, but Windows works like this as well):
    ./script/rapidminer //YourRepository/home/test/myProcess -Mname1=value "-Mname2=value with spaces"
    This will pass two macros to RapidMiner with the name "name1" and "name2" which you can use in a process with %{name1} for example.

    The next release which will include this will be next week if anything works out or the week after next.
  • Options
    DominicDominic Member Posts: 3 Contributor I
    Thanks very much, looks like it will do exactly what I was looking for.
Sign In or Register to comment.