Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AvivSham authored Nov 12, 2022
1 parent e50b64a commit 47c957d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions experiments/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ def gen_classes_per_node(dataset, num_users, classes_per_user=2, high_prob=0.6,
# -------------------------------------------#
# Divide classes + num samples for each user #
# -------------------------------------------#
assert (classes_per_user * num_users) % num_classes == 0, "equal classes appearance is needed"
count_per_class = (classes_per_user * num_users) // num_classes
# assert (classes_per_user * num_users) % num_classes == 0, "equal classes appearance is needed"
count_per_class = (classes_per_user * num_users) // num_classes + 1
class_dict = {}
for i in range(num_classes):
# sampling alpha_i_c
Expand Down

0 comments on commit 47c957d

Please sign in to comment.