How to load dataset from Java application to a Rapidminer process?

nom1010nom1010 MemberPosts:8Contributor II
edited November 2018 inHelp

This is my rapidminer process, and I can load it to my Java application, and run it, after that print out the result, what I see in Rapidminer Studio. My problem is, I don't know how can I add a dataset from the app to the loaded project, instead of using retrieve box, before set the role?

01.png

01.png 0B
Tagged:

Best Answer

  • Thomas_OttThomas_Ott RapidMiner Certified Analyst, RapidMiner Certified Expert, MemberPosts:1,761Unicorn
    Solution Accepted

    Not sure on where all your data is coming from but if you want to load multiple data sets you could use a Read CSV or Read XLS operator in conjuction with a Loop Files or Loop operator, instead of the Retrieve operator. The Retrieve operator is a RapidMiner optimized data repository, but the data can come from CSV, databases, Hadoop, etc. You don't really need to Load Data > Store in Repository > Retrieve Data > Process, you can just Load Data > Process

    sgenzer nom1010

Answers

  • nom1010nom1010 MemberPosts:8Contributor II

    Thanks, it's really useful, I see that. Another thing, I wrote a sample code, to run a process within Java code, I'd like to say to the loaded process, before it runs, what csv file it has to use, is it possible?

    RapidMiner.setExecutionMode(RapidMiner.ExecutionMode.COMMAND_LINE);
    RapidMiner.init();

    Process process = new Process(new File("testProcess.rmp"));
    System.out.println(process.run());

    Thomas_Ott
Sign InorRegisterto comment.