// for each connection weight apply accumulated weight change
Weight weight = connection.getWeight();
// get deltaWeightSum
double deltaWeightSum = weight.getTrainingData().get(TrainingData.DELTA_WEIGHT_SUM);
// apply the deltaWeightSum
weight.inc(deltaWeightSum);
// reset the deltaWeightSum to prepare it for next epoch
weight.getTrainingData().set(TrainingData.DELTA_WEIGHT_SUM, 0);
}
}
}