diff --git a/fedn/fedn/utils/plugins/kerashelper.py b/fedn/fedn/utils/plugins/kerashelper.py index 195858c76..7a931ae34 100644 --- a/fedn/fedn/utils/plugins/kerashelper.py +++ b/fedn/fedn/utils/plugins/kerashelper.py @@ -30,7 +30,7 @@ def increment_average(self, model, model_next, num_examples, total_examples): w = num_examples / total_examples weights = [] for i in range(len(model)): - weights.append(w * model[i] + (1 - w) * model_next[i]) + weights.append(w * model_next[i] + (1 - w) * model[i]) return weights