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