Skip to content

Commit 59a3130

Browse files
committed
data indices creating changed to support uneven data arrays
1 parent f1e84eb commit 59a3130

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fed_learn/data_sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def iid_data_indices(nb_clients: int, data_len: int):
55
indices = np.arange(data_len)
66
np.random.shuffle(indices)
7-
chunks = np.split(indices, nb_clients)
7+
chunks = np.array_split(indices, nb_clients)
88
return chunks
99

1010

0 commit comments

Comments
 (0)