for (int i = neuralNetwork.getLayersCount() - 1; i > 0; i--) {
Layer layer = neuralNetwork.getLayers().get(i);
for (Neuron neuron : layer.getNeurons()) {
for (Connection connection : neuron.getInputConnections()) {
Weight weight = connection.getWeight();
weight.initTrainingDataBuffer(this.trainingDataBufferSize);
}
}
}
}