Update
Browse files- 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
|
227 |
-
|
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 |
|