Datasets:
Update mammography.py
Browse files- mammography.py +5 -2
mammography.py
CHANGED
@@ -65,8 +65,11 @@ urls_per_split = {
|
|
65 |
}
|
66 |
features_types_per_config = {
|
67 |
"mammography": {
|
68 |
-
|
69 |
-
"
|
|
|
|
|
|
|
70 |
}
|
71 |
}
|
72 |
features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config}
|
|
|
65 |
}
|
66 |
features_types_per_config = {
|
67 |
"mammography": {
|
68 |
+
"age": datasets.Value("int8"),
|
69 |
+
"lesion_shape": datasets.Value("string"),
|
70 |
+
"margin": datasets.Value("string"),
|
71 |
+
"density": datasets.Value("string"),
|
72 |
+
"is_severe": datasets.ClassLabel(num_classes=2, names=("no", "yes"))
|
73 |
}
|
74 |
}
|
75 |
features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config}
|