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
ExampleSet as Operator in a process (JAVA)
Hi,
I'm trying to implement a DecisionTreeLearner and created an ExampleSet like explained in [1].
Now I'm stuck with the integration of this ExampleSet in a process with the DecisionTreeLearner. What I did was:
Thanks and Sincerely
sWn
Sources:
[1] http://rapid-i.com/wiki/index.php?title=Integrating_RapidMiner_into_your_application#Transform_data_for_RapidMiner
I'm trying to implement a DecisionTreeLearner and created an ExampleSet like explained in [1].
Now I'm stuck with the integration of this ExampleSet in a process with the DecisionTreeLearner. What I did was:
How can I add my ExampleSet to the process (maybe as an operator) and connect the ports like
Process process = new Process();
DecisionTreeLearner dtl = OperatorService.createOperator(DecisionTreeLearner.class);
process.getRootOperator().getSubprocess(0).addOperator(dtl);
process.run();
myInputDataExampleSet.getOutputPorts().getPortByName("nameOfOutputPort").connectTo(dtl.getInputPorts().getPortByName("training set"));I can only find examples where the data is coming from an input file and I can't find an operator to which I can simply add my ExampleSet.
Thanks and Sincerely
sWn
Sources:
[1] http://rapid-i.com/wiki/index.php?title=Integrating_RapidMiner_into_your_application#Transform_data_for_RapidMiner
Tagged:
0
Answers
I would suggest you use the recommended way of executing a RapidMiner process you previously built via the RapidMiner GUI, instead of trying to create one from scratch.
See here and read my two replies and then read this as well. That should tell you all you need to know
Regards,
Marco
thanks for your reply! That really seems to be a much easier way to solve my problem.
Sincerely
sWn