Spaces:
Runtime error
Runtime error
fix syntax error
Browse files- train_main.py +2 -1
train_main.py
CHANGED
|
@@ -16,7 +16,8 @@ def process_dataset_with_augmentation(df, is_training=False):
|
|
| 16 |
# 1. Calculate Statistics for Balancing (Only needed for training)
|
| 17 |
if is_training:
|
| 18 |
class_counts = df['target'].value_counts().to_dict()
|
| 19 |
-
max_count = max(class_counts.values())
|
|
|
|
| 20 |
|
| 21 |
total = len(df)
|
| 22 |
|
|
|
|
| 16 |
# 1. Calculate Statistics for Balancing (Only needed for training)
|
| 17 |
if is_training:
|
| 18 |
class_counts = df['target'].value_counts().to_dict()
|
| 19 |
+
max_count = max(class_counts.values())
|
| 20 |
+
print(f" [Augmentation] Balancing classes to match majority count: {max_count}")
|
| 21 |
|
| 22 |
total = len(df)
|
| 23 |
|