"RapidMiner GUI as a Library from other Java program"

vijaypshah
vijaypshah New Altair Community Member
edited November 5 in Community Q&A
Hi,

I was reading chapter 7 to integrate RM into other application. I want to use the RM-GUI as a library from other Java program. I just want to speed up my research, by integration both software so that I don't have to write data/results to disk. Could you please let me know about the documentation or example for using RM GUI as a library?
I could start RM_GUI using following code in my application

************************************************************
    new Thread(){
                   public void run() {
                    try {
                    String path="C:\\Program Files (x86)\\Rapid-I\\RapidMiner";
    System.setProperty("rapidminer.home",path );
   com.rapidminer.gui.RapidMinerGUI.main(new String[]{"Y:\\research\\rm_workspace\\clustering_xml\\em_no_reduction.xml"});
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}}
                       }.start();
***********************************************
How can I setup ExampleSet for the same and obtain back the result?

Thanks for your help.
Regards,
Vijay
Tagged:

Answers

  • land
    land New Altair Community Member
    Hi Vijay,
    I'm not quite sure if it is possible this way. As far as I know you cannot give a process in the gui an initial input. A solution would be to put an Operator in the process, returning the example set. This could be done using a plugin.

    But currently I don't know how to get back the results from gui mode...

    Greetings,
      Sebastian
  • vijaypshah
    vijaypshah New Altair Community Member
    Hi Sebastian,

    Thanks, Oops, I had copied wrong code while experimentation. I corrected my previous post. I meant to say start GUI by passing the XML file not the process.

    Regards,
    Vijay