Skip to content

Commit

Permalink
Merge branch 'master' into feature/refactor-common
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Hellander committed Dec 5, 2023
2 parents 5e86e7c + 268fb5a commit ecd5714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedn/fedn/utils/plugins/kerashelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ecd5714

Please sign in to comment.