Skip to content

Commit

Permalink
Add alternate distribution description
Browse files Browse the repository at this point in the history
  • Loading branch information
chongshenng committed Jul 18, 2024
1 parent 1dd6e29 commit a744681
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ class DistributionPartitioner(Partitioner): # pylint: disable=R0902
and a configuration with 20 partitions and 2 unique labels per partition, the 0'th
row of the distribution array (corresponding to class 0) will be assigned to
partitions [0, 9, 10, 19], 1st row (class 1) to [0, 1, 10, 11], 2nd row (class 2)
to [1, 2, 11, 12], 3rd row (class 3) to [2, 3, 12, 13], etc ...
to [1, 2, 11, 12], 3rd row (class 3) to [2, 3, 12, 13], etc ... . Alternatively, the
distribution can be interpreted as partition 0 having classes 0 and 1, partition 1
having classes 1 and 2, partition 2 having classes 2 and 3, etc ...
The list representing the unique labels is sorted in ascending order.
Parameters
Expand Down

0 comments on commit a744681

Please sign in to comment.