Integrating RapidMiner with Jython

michaelhecht
michaelhecht New Altair Community Member
edited November 5 in Altair RapidMiner
Here is an example for the simplest way of integration RapidMiner into your own application (here Jython).
Doing it shorter and easier is impossible!!  ;D

Full code:

import com.rapidminer.RapidMiner as RapidMiner
import com.rapidminer.Process as Process
import com.rapidminer.RapidMiner.ExecutionMode as ExecutionMode
import java.io.File as File

RapidMiner.setExecutionMode(ExecutionMode.COMMAND_LINE)
RapidMiner.init()
process = Process(File('D:/Repository/myRMworkflow.rmp'))
process.run()
Tagged: