-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmydataset_test.py
29 lines (21 loc) · 882 Bytes
/
mydataset_test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"""mydataset dataset."""
import climetlab as cml
import tensorflow_datasets as tfds
import mydataset
# ds = cml.load_dataset('s2s-ai-challenge-training-input', date='20200102', parameter='t2m')
# print(ds.to_xarray())
class MydatasetTest(tfds.testing.DatasetBuilderTestCase):
"""Tests for mydataset dataset."""
# TODO(mydataset):
DATASET_CLASS = mydataset.Mydataset
SPLITS = {
"train": 440, # Number of fake train example
"test": 102, # Number of fake test example
}
# If you are calling `download/download_and_extract` with a dict, like:
# dl_manager.download({'some_key': 'http://a.org/out.txt', ...})
# then the tests needs to provide the fake output paths relative to the
# fake data directory
# DL_EXTRACT_RESULT = {'some_key': 'output_file1.txt', ...}
if __name__ == "__main__":
tfds.testing.test_main()