File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
tensorflow_datasets/datasets/pneumoniamnist Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
"""pneumoniamnist dataset."""
2
2
3
- from tensorflow_datasets .image_classification .pneumoniamnist .pneumoniamnist import pneumoniamnist_dataset_builder
3
+ # from tensorflow_datasets.datasets.pneumoniamnist import pneumoniamnist_dataset_builder
4
+ from . import pneumoniamnist_dataset_builder
4
5
import tensorflow_datasets .public_api as tfds
5
6
6
7
class PneumoniamnistTest (tfds .testing .DatasetBuilderTestCase ):
7
8
"""Tests for pneumoniamnist dataset."""
8
- # TODO(pneumoniamnist):
9
+
9
10
DATASET_CLASS = pneumoniamnist_dataset_builder .Builder
10
11
SPLITS = {
11
- 'train' : 3 , # Number of fake train example
12
- 'test' : 1 , # Number of fake test example
12
+ 'train' : 3 ,
13
+ 'val' : 1 ,
14
+ 'test' : 1 ,
15
+ }
16
+
17
+ DL_EXTRACT_RESULT = {
18
+ 'https://zenodo.org/record/10519652/files/pneumoniamnist.npz?download=1' : 'dummy_data/pneumoniamnist.npz' ,
13
19
}
14
20
15
- # If you are calling `download/download_and_extract` with a dict, like:
16
- # dl_manager.download({'some_key': 'http://a.org/out.txt', ...})
17
- # then the tests needs to provide the fake output paths relative to the
18
- # fake data directory
19
- # DL_EXTRACT_RESULT = {'some_key': 'output_file1.txt', ...}
20
21
21
22
22
23
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments