rshrott commited on
Commit
ed78f7e
1 Parent(s): ac0a2e0

Update renovation.py

Browse files
Files changed (1) hide show
  1. 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.8)
99
- test_end = int(num_files * 0.9)
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:])