mstz commited on
Commit
ff49b46
1 Parent(s): d458ca1

Upload heloc.py

Browse files
Files changed (1) hide show
  1. heloc.py +1 -1
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