I have an output which is IOObject and which is is DistributionModel at the same time. So now I want to get the attributes and values from that model. The project I'm working in is much wider and actually I want to get the output and retrieve the data from that output no matter whether it's distribution model,exampleset,etc. I'm already familiar with Examplesets and now going to work with distribution models.Any ideas?This is my code:
RapidMiner.setExecutionMode(ExecutionMode.COMMAND_LINE);
RapidMiner.init();
Test obj=new Test() ;
//obj.go();
// MUST BE INVOKED BEFORE ANYTHING ELSE !!!
Process process=new Process(readFileAsString(x));
//process.getRootOperator().getOperator(1).setParameter(key, value);
IOContainer ioResult = process.run();
DistributionModel resultSet=null;
if (ioResult.getElementAt(0) instanceof DistributionModel) {
System.out.println ("***************************");
resultSet = (DistributionModel)ioResult.getElementAt(0);
}
Thanks in advance.
best regards, Fire