Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sjtudyq authored Jul 8, 2022
1 parent cf6a71b commit a9375d7
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 @@ -423,7 +423,7 @@ def partition_data(dataset, datadir, logdir, partition, n_parties, beta=0.4):
for j in batch_idxs[i]:
net_dataidx_map[i]=np.append(net_dataidx_map[i], np.arange(user[j], user[j+1]))

elif partition == "real":
elif partition == "transfer-from-femnist":
stat = np.load("femnist-dis.npy")
n_total = stat.shape[0]
chosen = np.random.permutation(n_total)[:n_parties]
Expand Down

0 comments on commit a9375d7

Please sign in to comment.