System.out.print(e + "Problem opening file");
}
}
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;
}
} while (train.getError() > 0.01);
return 0;
}