Skip to content

Commit 7fea82c

Browse files
committed
Mainly changes in style:
correcting typos, enforcing conventions.
1 parent 6b29664 commit 7fea82c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: Create_clients.py

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
import os
44

55
def create_clients(num, dir):
6+
7+
'''
8+
This function creates clients that hold non-iid data. (it actually just creates indices that point to data.
9+
but the way these indices are grouped, they create a non-iid client.)
10+
:param num: Number of clients
11+
:param dir: where to store
12+
:return: _
13+
'''
14+
615
num_examples = 50000
716
num_classes = 10
817
if os.path.exists(dir + '/'+str(num)+'_clients.pkl'):

0 commit comments

Comments
 (0)