Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Fix pandas subset series
Browse files
NIH-Chest-X-ray-dataset.py
CHANGED
@@ -156,7 +156,7 @@ class XChest(datasets.GeneratorBasedBuilder):
|
|
156 |
#"labels": ["Mass", "Hernia"]
|
157 |
#"labels": [5, 14]
|
158 |
#"labels": "Mass"
|
159 |
-
"labels": label_csv[label_csv['Image Index'] == image_id
|
160 |
#"multi-labels": list(map(int, [_LABEL2IDX[x] for x in ["Mass", "Hernia"]))
|
161 |
}
|
162 |
|
|
|
156 |
#"labels": ["Mass", "Hernia"]
|
157 |
#"labels": [5, 14]
|
158 |
#"labels": "Mass"
|
159 |
+
"labels": label_csv[label_csv['Image Index'] == image_id]['Finding Labels'].values[0].split('|')[0]
|
160 |
#"multi-labels": list(map(int, [_LABEL2IDX[x] for x in ["Mass", "Hernia"]))
|
161 |
}
|
162 |
|