Skip to content

Commit

Permalink
increased chunk size for upper triangle matrix calc
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianGroeger96 committed Nov 7, 2024
1 parent 584253f commit b6295f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cleaner/selfclean_cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,9 @@ def fit(
)
triu_indices = np.triu_indices(self.N, k=1)
# create the upper triangular matrix of the distance matrix
n_chunks = math.ceil(len(triu_indices[0]) / self.chunk_size)
iterator = range(0, len(triu_indices[0]), self.chunk_size)
chunk_size = int(self.chunk_size * (self.chunk_size - 1) / 2)
n_chunks = math.ceil(len(triu_indices[0]) / chunk_size)
iterator = range(0, len(triu_indices[0]), chunk_size)
for start_idx in (
tqdm(
iterator,
Expand Down

0 comments on commit b6295f0

Please sign in to comment.