Datasets:
Update arhythmia.py
Browse files- arhythmia.py +3 -4
arhythmia.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
from typing import List
|
2 |
-
from functools import partial
|
3 |
|
4 |
import datasets
|
5 |
|
@@ -311,17 +310,17 @@ features_types_per_config = {
|
|
311 |
features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config}
|
312 |
|
313 |
|
314 |
-
class
|
315 |
def __init__(self, **kwargs):
|
316 |
super(ArrhythmiaConfig, self).__init__(version=VERSION, **kwargs)
|
317 |
self.features = features_per_config[kwargs["name"]]
|
318 |
|
319 |
|
320 |
-
class
|
321 |
# dataset versions
|
322 |
DEFAULT_CONFIG = "arhythmia"
|
323 |
BUILDER_CONFIGS = [
|
324 |
-
|
325 |
description="Multiclass classification of arhythmia type."),
|
326 |
]
|
327 |
|
|
|
1 |
from typing import List
|
|
|
2 |
|
3 |
import datasets
|
4 |
|
|
|
310 |
features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config}
|
311 |
|
312 |
|
313 |
+
class ArhythmiaConfig(datasets.BuilderConfig):
|
314 |
def __init__(self, **kwargs):
|
315 |
super(ArrhythmiaConfig, self).__init__(version=VERSION, **kwargs)
|
316 |
self.features = features_per_config[kwargs["name"]]
|
317 |
|
318 |
|
319 |
+
class Arhythmia(datasets.GeneratorBasedBuilder):
|
320 |
# dataset versions
|
321 |
DEFAULT_CONFIG = "arhythmia"
|
322 |
BUILDER_CONFIGS = [
|
323 |
+
ArhythmiaConfig(name="arhythmia",
|
324 |
description="Multiclass classification of arhythmia type."),
|
325 |
]
|
326 |
|