}
private void testNeuralNetwork() {
System.out.print("Neural network results:\n");
for (NeuralDataPair pair : trainingData) {
final NeuralData output = network.compute(pair.getInput());
System.out.println(pair.getInput().getData(0) + ", "
+ pair.getInput().getData(1) + ", "
+ pair.getInput().getData(2) + ", "
+ pair.getInput().getData(3) + ", "
+ ", actual = " + output.getData(0) + ", "
+ output.getData(1) + ", "
+ output.getData(2) + ", "
+ output.getData(3) + ", "
+ output.getData(4) + ", "
+ output.getData(5) + ", " + "\n");
}
}