Hi all,
I need a little bit help to access rapid miner into my application. I stored my data like a columnstore, so each column has an own format (string, double, int).
It this possible to add instead of a double data row to add a row with different formats in each column?
Here is my code:
RapidMiner.init();
Process process = new Process(pathtoProcessXML);
// create attribute list
List<Attribute> attributes = new LinkedList<Attribute>();
attributes.add(AttributeFactory.createAttribute("att1", Ontology.INTEGER));
Attribute lable = AttributeFactory.createAttribute("label", Ontology.NOMINAL);
lable.getMapping().mapString("0");
lable.getMapping().mapString("1");
attributes.add(lable);
// create table content
MemoryExampleTable table = new MemoryExampleTable(attributes);
double[] data = new double[2];
data[0] = 0;
data[1] = 0;
table.addDataRow(new DoubleArrayDataRow(data));
// create example set
ExampleSet exampleSet = table.createExampleSet(lable);
// Print table
for (int row = 0; row < table.size(); row++) {
System.out.println(table.getDataRow(row));
}
System.out.println(exampleSet.toResultString());
// run the process with new IOContainer using the created exampleSet
process.run(new IOContainer(exampleSet));
Gives the rapid miner library a possibility to add different column types?
Thanks a lot for answering!