Hi to all i have done a process that read a model and apply it to the input data that i give from source code.
My code after init():
// setup your attribute list
table = new MemoryExampleTable(master.ListaAttrib);
//My ListaAttrib has 10 attribute
input = utile.scalavettor(posx, posy, puntioriginali);
table.addDataRow(new DoubleArrayDataRow(input));
exSet = table.createExampleSet();
ioInput = new IOContainer(new IOObject[]{exSet});
ioResult = master.process.run(ioInput);
if (ioResult.getElementAt(0) instanceof ExampleSet) {
resultSet = (ExampleSet) ioResult.getElementAt(0);
e = resultSet.getExample(0);
predettoX = e.getPredictedLabel();
}
The problem is that code is in a loop and at every iteration the MemoryExampleTable has more Attribute, because the apply model add label and confidence.
With a wrong number of attribute my model don't work.
I try removeattribute but seem that nothing change.
I need it for my Master Thesis everyone can help me?
Regards
Nello