// System.out.println(" Structure: " + structure);
structure.setClassIndex(structure.numAttributes() - 1);
// train NaiveBayes
MultilayerPerceptron nn = new MultilayerPerceptron();
nn.buildClassifier(structure);
System.out.println(" Perceptron created1: " + nn);
Attribute att;
Instance newInstance = new DenseInstance(structure.numAttributes());