private void ApplyCorrection() { foreach (KeyValuePair<ISynapse, Matrix> entry in this.correctionMatrix) { entry.Key.WeightMatrix.Set(entry.Value); } }