System.out.println("Starting Weights:");
displayWeights(network);
evaluate(network,trainingSet);
final TrainFlatNetworkResilient train = new TrainFlatNetworkResilient(
network, trainingSet);
for (int iteration = 1; iteration <= ITERATIONS; iteration++) {
train.iteration();
System.out.println();
System.out.println("*** Iteration #" + iteration);
System.out.println("Error: " + train.getError());
evaluate(network,trainingSet);
System.out.println("LastGrad:"
+ Arrays.toString(train.getLastGradient()));
System.out.println("Updates :"
+ Arrays.toString(train.getUpdateValues()));
displayWeights(network);
}
}