Update renovation.py
Browse files- renovation.py +2 -2
renovation.py
CHANGED
@@ -95,8 +95,8 @@ class Renovations(datasets.GeneratorBasedBuilder):
|
|
95 |
for label, files_and_labels in data_by_class.items():
|
96 |
random.shuffle(files_and_labels)
|
97 |
num_files = len(files_and_labels)
|
98 |
-
train_end = int(num_files * 0.
|
99 |
-
test_end = int(num_files * 0.
|
100 |
train_data.extend(files_and_labels[:train_end])
|
101 |
test_data.extend(files_and_labels[train_end:test_end])
|
102 |
val_data.extend(files_and_labels[test_end:])
|
|
|
95 |
for label, files_and_labels in data_by_class.items():
|
96 |
random.shuffle(files_and_labels)
|
97 |
num_files = len(files_and_labels)
|
98 |
+
train_end = int(num_files * 0.85)
|
99 |
+
test_end = int(num_files * 0.95)
|
100 |
train_data.extend(files_and_labels[:train_end])
|
101 |
test_data.extend(files_and_labels[train_end:test_end])
|
102 |
val_data.extend(files_and_labels[test_end:])
|