FeedForwardNeuralNetwork ffnn = new FeedForwardNeuralNetwork(config);
ffnn.setTrainingScheme(new BackPropLearning(0.1, 0.9));
ffnn.trainOn(innds, 10);
innds.refreshDataset();
int[] result = ffnn.testOnDataSet(innds);
System.out.println(result[0] + " right, " + result[1] + " wrong");
} catch (Exception e) {
e.printStackTrace();
}