Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sjtudyq authored Nov 17, 2021
1 parent 3af760c commit 42e6035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def partition_data(dataset, datadir, logdir, partition, n_parties, beta=0.4):
batch_idxs = np.split(idxs,proportions)
net_dataidx_map = {i: batch_idxs[i] for i in range(n_parties)}

elif partition == "mixed":
elif partition == "mixed":
min_size = 0
min_require_size = 10
K = 10
Expand Down

0 comments on commit 42e6035

Please sign in to comment.