lukemelas commited on
Commit
1258ac1
1 Parent(s): 325e028
Files changed (1) hide show
  1. test-dataset-debug.py +2 -2
test-dataset-debug.py CHANGED
@@ -223,8 +223,8 @@ class Patents(datasets.GeneratorBasedBuilder):
223
  else:
224
 
225
  # Check
226
- if not all(self.config.train_filing_start_date, self.config.train_filing_end_date,
227
- self.config.val_filing_start_date, self.config.train_filing_end_date):
228
  raise ValueError("Please either use uniform_split or specify your exact \
229
  training and validation split dates.")
230
 
 
223
  else:
224
 
225
  # Check
226
+ if not (self.config.train_filing_start_date and self.config.train_filing_end_date and
227
+ self.config.val_filing_start_date and self.config.train_filing_end_date):
228
  raise ValueError("Please either use uniform_split or specify your exact \
229
  training and validation split dates.")
230