/** Calculate the output of the neural network based on the input The forward operation */ public void activate() { for (Neuron n : hiddenLayer) n.calculateOutput(); for (Neuron n : outputLayer) n.calculateOutput(); }