mstz commited on
Commit
fe455ac
1 Parent(s): c7dc54c

Upload heloc.py

Browse files
Files changed (1) hide show
  1. heloc.py +2 -2
heloc.py CHANGED
@@ -61,7 +61,7 @@ _BASE_FEATURE_NAMES = [
61
  "percentage_trades_with_balance"
62
  ]
63
 
64
- DESCRIPTION = "Heloc dataset for cancer prediction."
65
  _HOMEPAGE = "https://community.fico.com/s/explainable-machine-learning-challenge?tabset-158d9=ca01a"
66
  _URLS = ("https://community.fico.com/s/explainable-machine-learning-challenge?tabset-158d9=ca01a")
67
  _CITATION = """
@@ -145,7 +145,7 @@ class Heloc(datasets.GeneratorBasedBuilder):
145
 
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
  data.loc[:, "is_at_risk"] = data.is_at_risk.apply(lambda x: 1 if x == "Bad" else 0)
 
61
  "percentage_trades_with_balance"
62
  ]
63
 
64
+ DESCRIPTION = "Heloc dataset for trade insolvency risk prediction."
65
  _HOMEPAGE = "https://community.fico.com/s/explainable-machine-learning-challenge?tabset-158d9=ca01a"
66
  _URLS = ("https://community.fico.com/s/explainable-machine-learning-challenge?tabset-158d9=ca01a")
67
  _CITATION = """
 
145
 
146
  yield row_id, data_row
147
 
148
+ def preprocess(self, data: pandas.DataFrame, config: str = "risk") -> pandas.DataFrame:
149
  data = data[list(features_types_per_config["risk"].keys())]
150
 
151
  data.loc[:, "is_at_risk"] = data.is_at_risk.apply(lambda x: 1 if x == "Bad" else 0)