Numerizer numerizer = new IrisDataSetNumerizer();
NNDataSet innds = new IrisNNDataSet();
innds.createExamplesFromDataSet(irisDataSet, numerizer);
Perceptron perc = new Perceptron(3, 4);
perc.trainOn(innds, 10);
innds.refreshDataset();
int[] result = perc.testOnDataSet(innds);
System.out.println(result[0] + " right, " + result[1] + " wrong");
} catch (Exception e) {
e.printStackTrace();
}