Skip to content

Commit

Permalink
kerashelper increment helper error
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasakesson committed Dec 5, 2023
1 parent 2b60de1 commit 9056d86
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 9056d86

Please sign in to comment.