Skip to content

Commit

Permalink
codechecks
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Hellander committed Jan 23, 2024
1 parent 21f8065 commit 6e0611b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion fedn/fedn/network/clients/client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import base64
import io
import json
import os
import queue
import re
Expand Down
9 changes: 0 additions & 9 deletions fedn/fedn/utils/plugins/numpyhelper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from collections import OrderedDict

import numpy as np

Expand Down Expand Up @@ -29,14 +28,6 @@ def increment_average(self, m1, m2, n, N):
"""

return [np.add(x, n*(y-x))/N for x, y in zip(m1, m2)]
# w = np.add(m1, n*(np.array(m2) - np.array(m1)) / N)
# return w

# w = OrderedDict()
# for name in model.keys():
# tensorDiff = m1[name] - m2[name]
# w[name] = m1[name] + n*tensorDiff / N
# return w

def add(self, m1, m2, a=1.0, b=1.0):
""" m1*a + m2*b
Expand Down

0 comments on commit 6e0611b

Please sign in to comment.