Datasets:
Update heart_failure.py
Browse files- heart_failure.py +0 -13
heart_failure.py
CHANGED
@@ -97,18 +97,5 @@ class HeartFailure(datasets.GeneratorBasedBuilder):
|
|
97 |
data.columns = _BASE_FEATURE_NAMES
|
98 |
data = data.astype({"has_anaemia": "bool", "has_diabetes": "bool", "has_high_blood_pressure": "bool", "is_male": "bool",
|
99 |
"is_smoker": "bool"})
|
100 |
-
"age": datasets.Value("int8"),
|
101 |
-
"has_anaemia": datasets.Value("bool"),
|
102 |
-
"creatinine_phosphokinase_concentration_in_blood": datasets.Value("float64"),
|
103 |
-
"has_diabetes": datasets.Value("bool"),
|
104 |
-
"heart_ejection_fraction": datasets.Value("float64"),
|
105 |
-
"has_high_blood_pressure": datasets.Value("bool"),
|
106 |
-
"platelets_concentration_in_blood": datasets.Value("float64"),
|
107 |
-
"serum_creatinine_concentration_in_blood": datasets.Value("float64"),
|
108 |
-
"serum_sodium_concentration_in_blood": datasets.Value("float64"),
|
109 |
-
"is_male": datasets.Value("bool"),
|
110 |
-
"is_smoker": datasets.Value("bool"),
|
111 |
-
"days_in_study": datasets.Value("int64"),
|
112 |
-
"is_dead": datasets.ClassLabel(num_classes=2, names=("no", "yes"))
|
113 |
|
114 |
return data
|
|
|
97 |
data.columns = _BASE_FEATURE_NAMES
|
98 |
data = data.astype({"has_anaemia": "bool", "has_diabetes": "bool", "has_high_blood_pressure": "bool", "is_male": "bool",
|
99 |
"is_smoker": "bool"})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
return data
|