Skip to content

Commit

Permalink
update androidhelper
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasakesson committed Jan 12, 2024
1 parent 3d5b5af commit d07f08e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fedn/fedn/utils/plugins/androidhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self):

# function to calculate an incremental weighted average of the weights
def increment_average(
model, model_next, num_examples, total_examples
self, model, model_next, num_examples, total_examples
):
"""Incremental weighted average of model weights.
Expand Down Expand Up @@ -102,6 +102,6 @@ def get_tmp_path(self):
:return: Path to file.
"""
fd, path = tempfile.mkstemp(suffix=".json")
fd, path = tempfile.mkstemp(suffix="")
os.close(fd)
return path

0 comments on commit d07f08e

Please sign in to comment.