Datasets:
Upload arhythmia.py
Browse files- arhythmia.py +1 -1
arhythmia.py
CHANGED
@@ -305,7 +305,7 @@ features_types_per_config = {
|
|
305 |
"amplitude_of_t_wave_on_V6": datasets.Value("float64"),
|
306 |
"qrsa_on_V6": datasets.Value("float64"),
|
307 |
"qrsta_on_V6": datasets.Value("float64"),
|
308 |
-
"type_of_arhythmia": datasets.ClassLabel(num_classes=
|
309 |
}
|
310 |
}
|
311 |
features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config}
|
|
|
305 |
"amplitude_of_t_wave_on_V6": datasets.Value("float64"),
|
306 |
"qrsa_on_V6": datasets.Value("float64"),
|
307 |
"qrsta_on_V6": datasets.Value("float64"),
|
308 |
+
"type_of_arhythmia": datasets.ClassLabel(num_classes=17, names=["no_arhythmia"] + [f"arhythmia_of_type_{f}" for f in range(2, 16)] + ["unknown_arhythmia"])
|
309 |
}
|
310 |
}
|
311 |
features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config}
|