|
| 1 | +<div itemscope itemtype="http://schema.org/Dataset"> |
| 2 | + <div itemscope itemprop="includedInDataCatalog" itemtype="http://schema.org/DataCatalog"> |
| 3 | + <meta itemprop="name" content="TensorFlow Datasets" /> |
| 4 | + </div> |
| 5 | + <meta itemprop="name" content="pneumonia_mnist" /> |
| 6 | + <meta itemprop="description" content="# MedMNIST Pneumonia Dataset The PneumoniaMNIST is based on a prior dataset of 5,856 pediatric chest X-Ray images. The task is binary-class classification of pneumonia against normal. The source training set is split with a ratio of 9:1 into training and validation set, and use its source validation set as the test set. The source images are gray-scale, and their sizes are (384–2,916) × (127–2,713). The images are center-cropped with a window size of length of the short edge and resized into 1 × 28 × 28. To use this dataset: ```python import tensorflow_datasets as tfds ds = tfds.load('pneumonia_mnist', split='train') for ex in ds.take(4): print(ex) ``` See [the guide](https://www.tensorflow.org/datasets/overview) for more informations on [tensorflow_datasets](https://www.tensorflow.org/datasets). " /> |
| 7 | + <meta itemprop="url" content="https://www.tensorflow.org/datasets/catalog/pneumonia_mnist" /> |
| 8 | + <meta itemprop="sameAs" content="https://medmnist.com//" /> |
| 9 | + <meta itemprop="citation" content="@article{yang2023medmnist, title={Medmnist v2-a large-scale lightweight benchmark for 2d and 3d biomedical image classification}, author={Yang, Jiancheng and Shi, Rui and Wei, Donglai and Liu, Zequan and Zhao, Lin and Ke, Bilian and Pfister, Hanspeter and Ni, Bingbing}, journal={Scientific Data}, volume={10}, number={1}, pages={41}, year={2023}, publisher={Nature Publishing Group UK London} }" /> |
| 10 | +</div> |
| 11 | + |
| 12 | +# `pneumonia_mnist` |
| 13 | + |
| 14 | + |
| 15 | +Note: This dataset was added recently and is only available in our |
| 16 | +`tfds-nightly` package |
| 17 | +<span class="material-icons" title="Available only in the tfds-nightly package">nights_stay</span>. |
| 18 | + |
| 19 | +* **Description**: |
| 20 | + |
| 21 | +# MedMNIST Pneumonia Dataset |
| 22 | + |
| 23 | +The PneumoniaMNIST is based on a prior dataset of 5,856 pediatric chest X-Ray |
| 24 | +images. The task is binary-class classification of pneumonia against normal. The |
| 25 | +source training set is split with a ratio of 9:1 into training and validation |
| 26 | +set, and use its source validation set as the test set. The source images are |
| 27 | +gray-scale, and their sizes are (384–2,916) × (127–2,713). The images are |
| 28 | +center-cropped with a window size of length of the short edge and resized into 1 |
| 29 | +× 28 × 28. |
| 30 | + |
| 31 | +* **Homepage**: [https://medmnist.com//](https://medmnist.com//) |
| 32 | + |
| 33 | +* **Source code**: |
| 34 | + [`tfds.datasets.pneumonia_mnist.Builder`](https://github.com/tensorflow/datasets/tree/master/tensorflow_datasets/datasets/pneumonia_mnist/pneumonia_mnist_dataset_builder.py) |
| 35 | + |
| 36 | +* **Versions**: |
| 37 | + |
| 38 | + * **`1.0.0`** (default): Initial release. |
| 39 | + |
| 40 | +* **Download size**: `Unknown size` |
| 41 | + |
| 42 | +* **Dataset size**: `Unknown size` |
| 43 | + |
| 44 | +* **Auto-cached** |
| 45 | + ([documentation](https://www.tensorflow.org/datasets/performances#auto-caching)): |
| 46 | + Unknown |
| 47 | + |
| 48 | +* **Splits**: |
| 49 | + |
| 50 | +Split | Examples |
| 51 | +:---- | -------: |
| 52 | + |
| 53 | +* **Feature structure**: |
| 54 | + |
| 55 | +```python |
| 56 | +FeaturesDict({ |
| 57 | + 'image': Image(shape=(28, 28, 1), dtype=uint8), |
| 58 | + 'label': ClassLabel(shape=(), dtype=int64, num_classes=2), |
| 59 | +}) |
| 60 | +``` |
| 61 | + |
| 62 | +* **Feature documentation**: |
| 63 | + |
| 64 | +Feature | Class | Shape | Dtype | Description |
| 65 | +:------ | :----------- | :---------- | :---- | :---------- |
| 66 | + | FeaturesDict | | | |
| 67 | +image | Image | (28, 28, 1) | uint8 | |
| 68 | +label | ClassLabel | | int64 | |
| 69 | + |
| 70 | +* **Supervised keys** (See |
| 71 | + [`as_supervised` doc](https://www.tensorflow.org/datasets/api_docs/python/tfds/load#args)): |
| 72 | + `('image', 'label')` |
| 73 | + |
| 74 | +* **Figure** |
| 75 | + ([tfds.show_examples](https://www.tensorflow.org/datasets/api_docs/python/tfds/visualization/show_examples)): |
| 76 | + Not supported. |
| 77 | + |
| 78 | +* **Examples** |
| 79 | + ([tfds.as_dataframe](https://www.tensorflow.org/datasets/api_docs/python/tfds/as_dataframe)): |
| 80 | + Missing. |
| 81 | + |
| 82 | +* **Citation**: |
| 83 | + |
| 84 | +``` |
| 85 | +@article{yang2023medmnist, |
| 86 | + title={Medmnist v2-a large-scale lightweight benchmark for 2d and 3d biomedical image classification}, |
| 87 | + author={Yang, Jiancheng and Shi, Rui and Wei, Donglai and Liu, Zequan and Zhao, Lin and Ke, Bilian and Pfister, Hanspeter and Ni, Bingbing}, |
| 88 | + journal={Scientific Data}, |
| 89 | + volume={10}, |
| 90 | + number={1}, |
| 91 | + pages={41}, |
| 92 | + year={2023}, |
| 93 | + publisher={Nature Publishing Group UK London} |
| 94 | +} |
| 95 | +``` |
| 96 | + |
0 commit comments