A program to recognize and reward our most engaged community members
<?xml version="1.0" encoding="UTF-8" standalone="no"?><process version="5.0"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="5.0.10" expanded="true" name="Process"> <process expanded="true" height="206" width="346"> <operator activated="true" class="read_model" compatibility="5.0.10" expanded="true" height="60" name="Read Model" width="90" x="45" y="30"/> <connect from_op="Read Model" from_port="output" to_port="result 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> <portSpacing port="sink_result 2" spacing="0"/> </process> </operator></process>
RapidMiner.setExecutionMode(ExecutionMode.COMMAND_LINE);RapidMiner.init();InputStream is;// setup your input stream to your process file hereString xml = com.rapidminer.tools.Tools.readTextFile(is);Process modelLoaderProcess = new Process(xml);IOContainer ioResult = modelLoaderProcess .run();if (ioResult.getElementAt(0) instanceof AbstractModel) { AbstractModel model = (AbstractModel)ioResult.getElementAt(0);}
IOContainer ioInput = new IOContainer(new IOObject[]{ model });Process otherProcess = new Process(otherXML);IOContainer ioResult = otherProcess.run(ioInput);