Skip to content

Commit

Permalink
fix increment average
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasakesson committed Dec 5, 2023
1 parent 1c0ee37 commit 60a6a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fedn/fedn/utils/plugins/androidhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def increment_average(
weights = {}
for i in model.keys():
weights[i] = list(
w * np.array(model[i]) + (1 - w) * np.array(model_next[i])
(1-w) * np.array(model[i]) + w * np.array(model_next[i])
)

return weights
Expand Down

0 comments on commit 60a6a3c

Please sign in to comment.