Skip to content

Commit

Permalink
improve progressbar
Browse files Browse the repository at this point in the history
  • Loading branch information
swojciechowski committed Aug 16, 2022
1 parent 368b985 commit ad6d4f2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions weles/evaluation/Evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,10 @@ def process(self, clfs, verbose=False):
self.true_values = np.zeros([len(self.datasets), self.m * self.k],
dtype=object)

bar = tqdm(self.datasets, disable=not verbose)
# Iterate over datasets
for dataset_id, dataset_name in enumerate(tqdm(self.datasets,
desc="DTS",
ascii=True,
disable=not verbose)):
for dataset_id, dataset_name in enumerate(bar):
bar.set_description(dataset_name.ljust(20))
X, y = self.datasets[dataset_name]
for fold_id, (train, test) in enumerate(skf.split(X, y)):
str_gt = self._storage_key_gt(X, y, fold_id)
Expand Down

0 comments on commit ad6d4f2

Please sign in to comment.