mstz commited on
Commit
b49bf34
·
1 Parent(s): bbd4434

Upload arrhythmia.py

Browse files
Files changed (1) hide show
  1. arrhythmia.py +5 -5
arrhythmia.py CHANGED
@@ -8,7 +8,7 @@ import pandas
8
 
9
  VERSION = datasets.Version("1.0.0")
10
 
11
- DESCRIPTION = "Arrhytmia dataset from the UCI ML repository."
12
  _HOMEPAGE = "https://archive-beta.ics.uci.edu/dataset/5/arrhythmia"
13
  _URLS = ("https://archive-beta.ics.uci.edu/dataset/5/arrhythmia")
14
  _CITATION = """
@@ -304,7 +304,7 @@ features_types_per_config = {
304
  "amplitude_of_t_wave_on_V6": datasets.Value("float64"),
305
  "qrsa_on_V6": datasets.Value("float64"),
306
  "qrsta_on_V6": datasets.Value("float64"),
307
- "type_of_arrhytmia": datasets.ClassLabel(num_classes=16)
308
  }
309
  }
310
  features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config}
@@ -318,10 +318,10 @@ class ArrhythmiaConfig(datasets.BuilderConfig):
318
 
319
  class Arrhythmia(datasets.GeneratorBasedBuilder):
320
  # dataset versions
321
- DEFAULT_CONFIG = "arrhytmia"
322
  BUILDER_CONFIGS = [
323
- ArrhythmiaConfig(name="arrhytmia",
324
- description="Multiclass classification of arrhytmia type."),
325
  ]
326
 
327
 
 
8
 
9
  VERSION = datasets.Version("1.0.0")
10
 
11
+ DESCRIPTION = "Arhythmia dataset from the UCI ML repository."
12
  _HOMEPAGE = "https://archive-beta.ics.uci.edu/dataset/5/arrhythmia"
13
  _URLS = ("https://archive-beta.ics.uci.edu/dataset/5/arrhythmia")
14
  _CITATION = """
 
304
  "amplitude_of_t_wave_on_V6": datasets.Value("float64"),
305
  "qrsa_on_V6": datasets.Value("float64"),
306
  "qrsta_on_V6": datasets.Value("float64"),
307
+ "type_of_arhythmia": datasets.ClassLabel(num_classes=16, names=["no_arhytmia"] + ["arhytmia_of_type_{f}" for f in range(2, 15)] + ["unknown_arhytmia"])
308
  }
309
  }
310
  features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config}
 
318
 
319
  class Arrhythmia(datasets.GeneratorBasedBuilder):
320
  # dataset versions
321
+ DEFAULT_CONFIG = "arhythmia"
322
  BUILDER_CONFIGS = [
323
+ ArrhythmiaConfig(name="arhythmia",
324
+ description="Multiclass classification of arhythmia type."),
325
  ]
326
 
327