Skip to content

Commit

Permalink
Raname method name for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-narozniak committed Jul 11, 2024
1 parent f5cef40 commit 28af927
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _determine_partition_id_to_indices_if_needed(self) -> None:
return
self._determine_partition_id_to_unique_labels()
assert self._unique_labels is not None
self._determine_unique_label_to_times_used()
self._count_partitions_having_each_unique_label()

labels = np.asarray(self.dataset[self._partition_by])
self._check_correctness_of_unique_label_to_times_used_counter(labels)
Expand Down Expand Up @@ -258,8 +258,8 @@ def _determine_partition_id_to_unique_labels(self) -> None:
f"'first-deterministic'. You provided: {self._class_assignment_mode}."
)

def _determine_unique_label_to_times_used(self) -> None:
"""Determine how many times the label is used in the partitions.
def _count_partitions_having_each_unique_label(self) -> None:
"""Count the number of partitions that have each unique label.
This computation is based on the assigment of the label to the partition_id in
the `_determine_partition_id_to_unique_labels` method.
Expand Down

0 comments on commit 28af927

Please sign in to comment.