Datasets:
Upload heloc.py
Browse files
heloc.py
CHANGED
@@ -146,7 +146,7 @@ class Heloc(datasets.GeneratorBasedBuilder):
|
|
146 |
yield row_id, data_row
|
147 |
|
148 |
def preprocess(self, data: pandas.DataFrame, config: str = "cancer") -> pandas.DataFrame:
|
149 |
-
data = data[features_types_per_config["risk"]]
|
150 |
|
151 |
if config == "risk":
|
152 |
return data
|
|
|
146 |
yield row_id, data_row
|
147 |
|
148 |
def preprocess(self, data: pandas.DataFrame, config: str = "cancer") -> pandas.DataFrame:
|
149 |
+
data = data[list(features_types_per_config["risk"].keys())]
|
150 |
|
151 |
if config == "risk":
|
152 |
return data
|