DataRowFactory dataRowFactory = new DataRowFactory(DataRowFactory.TYPE_DOUBLE_ARRAY, '.');
MemoryExampleTable memoryExampleTable = new MemoryExampleTable(attribute);
for (Map.Entry<double[], String> entry : itemClassMap.entrySet()) {
Double[] values = convertdoubleToDoubleArray(entry.getKey(), entry.getValue());
DataRow rmRow = dataRowFactory.create(values, attribute);
memoryExampleTable.addDataRow(rmRow);
}
ExampleSet newExampleSet = memoryExampleTable.createExampleSet();