Skip to content

Commit

Permalink
Bugfix/GH-492 |Fix kerashelper increment helper error (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasakesson authored Dec 5, 2023
1 parent 2b60de1 commit 268fb5a
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 268fb5a

Please sign in to comment.