The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Integration with Java application
Hi, I'm new to RapidMiner.
I'd like to integrate me small RapidMiner into my application. I want to use the RapidMiner as a library not as a separate application. I read a wiki about RM and library but the information for me is helpless.
How can I integrate the RM? Is there only one possibility to communicate my application and RM using 'process'?
best regards,
Sylvester
I'd like to integrate me small RapidMiner into my application. I want to use the RapidMiner as a library not as a separate application. I read a wiki about RM and library but the information for me is helpless.
How can I integrate the RM? Is there only one possibility to communicate my application and RM using 'process'?
best regards,
Sylvester
0
Answers
I'm sorry, but I don't really get what you are trying to do. You can integrate RapidMiner as a library just like you would with any other libraries, just add the jars to your project. If you want to execute a RapidMiner process, you will indeed need to use the Process class - however you can also chose to implement something else and only use algorithms.
If you are looking for an easy way to execute a process you built via the RapidMiner GUI, you can see how it is done here: click.
Regards,
Marco
can you help please in where we can find the jars files?
you can find them where you'd normally find library files: in the "lib" folder
Regards,
Marco
I try to integrate RM in my java project, so I imported rapidminer.jar.
But just for this try, I realize I have to import a lot of other jars (which are in lib folder). Is it normal? Does it exist a big jar with all needed jars?
And can you estimate the global size of the total used libs for a java project? (rapidmier.jar is about 12M, so I guess it is far more than 12M...)
Thx,
Yes, that is normal. No, there is no big "all-in-one" jar. If you need that, you can create it yourself.
Final size? May I humbly suggest you add all the jars and check it yourself?
Regards,
Marco
I would like to use rapidminer from my app, too. I want to use dbscan in a first step. I would like to generate an input for dbscan without generating a xml-file. Is this possible?
I saw a possibility to do that on
http://rapid-i.com/wiki/index.php?title=Integrating_RapidMiner_into_your_application
Is this the actual way to do that?
If yes, I read:
"The last thing which must be done is to produce a view on this example table. Such views are called ExampleSet in RapidMiner. The creation of these views is done by the method createCompleteExampleSet(label, null, null, null). The resulting example set can be encapsulated in a IOContainer and given to operators."
But how can I do this? Can I use process.run(IOContainer)? Or is there a change since the introduction of the RM port-concept?
I think generating dynamical input for using RM in an own application is a basical step, isn´t it? So were can I find a documentation for this for the actual version of RM?
Thanks for helping!
Maltinho
a lot of things are possible, sometimes you just need to be creative
If I understood you correctly, you want to create an ExampleSet with your custom data and then feed it to a process to do some work with it?
If so, there are multiple ways to do it, I will start with one way to create an ExampleSet: Now you have an ExampleSet filled with your data. Next you need a process to work with the data. You can either create the process yourself manually (I would advise against that, it is much more error-prone and tedious), or you can create a process beforehand via the RapidMiner gui and then just load the XML and create a process from it (This is by far the easiest and most failsafe way to do it).
After you have your process, you can just call Regards,
Marco
first of all, thanks for the fast reply! Yes, that is what I want to do, and that is, what I already did. I tried to build the process by hand... So if I´ll initialize it with this process-file: it should work? Okay, thanks, I´ll try it in the evening, when I´m back home... I think the problem was, that the input-port of the Operator was not connected to a port of the process... How can I do this by hand in the code?
Using a xml-file now should do the job, right?
Regards,
Maltinho
indeed you can do that via inserting a line like that into the XML, or you could do so via Regards,
Marco