Skip to content

Commit bca384e

Browse files
feat: define _info method
1 parent 9fb69e8 commit bca384e

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tensorflow_datasets/datasets/pneumoniamnist/pneumoniamnist_dataset_builder.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,12 @@ class Builder(tfds.core.GeneratorBasedBuilder):
1313

1414
def _info(self) -> tfds.core.DatasetInfo:
1515
"""Returns the dataset metadata."""
16-
# TODO(pneumoniamnist): Specifies the tfds.core.DatasetInfo object
1716
return self.dataset_info_from_configs(
1817
features=tfds.features.FeaturesDict({
19-
# These are the features of your dataset like images, labels ...
20-
'image': tfds.features.Image(shape=(28, 28, 3)),
18+
'image': tfds.features.Image(shape=(28, 28, 1)),
2119
'label': tfds.features.ClassLabel(names=['Normal', 'Pneumonia']),
2220
}),
23-
# If there's a common (input, target) tuple from the
24-
# features, specify them here. They'll be used if
25-
# `as_supervised=True` in `builder.as_dataset`.
26-
supervised_keys=('image', 'label'), # Set to `None` to disable
21+
supervised_keys=('image', 'label'),
2722
homepage='https://medmnist.com//',
2823
)
2924

0 commit comments

Comments
 (0)