99100101102103104105106107108109
private int trainNeuralNetwork() { final Train train = new ResilientPropagation(network, trainingData); int epoch = 1; do { train.iteration(); //System.out.println("Epoch #" + epoch + " Error: " + train.getError()); epoch++; if (epoch > 500) { return 1; }