Skip to content

Commit 3208600

Browse files
committed
print distribution of the classes
1 parent f5f5d75 commit 3208600

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/data_loader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def load_data(args):
7979

8080
print(
8181
f'data loaded successfully with {len(texts)} rows and {number_of_classes} labels')
82-
82+
print('Distribution of the classes', Counter(labels))
83+
8384
sample_weights = get_sample_weights(labels)
8485

8586
return texts, labels, number_of_classes, sample_weights

0 commit comments

Comments
 (0)