mstz commited on
Commit
aa9ee6e
·
1 Parent(s): f061b2d

Upload nbfi.py

Browse files
Files changed (1) hide show
  1. nbfi.py +2 -3
nbfi.py CHANGED
@@ -147,8 +147,8 @@ _CITATION = """"""
147
 
148
  # Dataset info
149
  urls_per_split = {
150
- "train": "https://huggingface.co/datasets/mstz/nbfi/raw/main/Train_Dataset.csv",
151
- "test": "https://huggingface.co/datasets/mstz/nbfi/raw/main/Test_Dataset.csv"
152
  }
153
 
154
  features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config}
@@ -201,7 +201,6 @@ class NBFI(datasets.GeneratorBasedBuilder):
201
 
202
 
203
  def preprocess(self, data: pandas.DataFrame, config: str = DEFAULT_CONFIG) -> pandas.DataFrame:
204
- print(data.columns)
205
  data.drop("ID", axis="columns", inplace=True)
206
  data.drop("Own_House_Age", axis="columns", inplace=True)
207
  data.drop("Type_Organization", axis="columns", inplace=True)
 
147
 
148
  # Dataset info
149
  urls_per_split = {
150
+ "train": "https://gist.githubusercontent.com/msetzu/6c83dc3b7092d428ae2f08dc91e1020c/raw/9fc3171b293d0dc29963357450308eb4c7e3a15b/Train_Dataset.csv",
151
+ "test": "https://gist.githubusercontent.com/msetzu/f0032b855008f579299d7ad78d9dd9c2/raw/ba42badeb10b505cb283bdb16d3de581ffe7a332/Test_Dataset.csv"
152
  }
153
 
154
  features_per_config = {k: datasets.Features(features_types_per_config[k]) for k in features_types_per_config}
 
201
 
202
 
203
  def preprocess(self, data: pandas.DataFrame, config: str = DEFAULT_CONFIG) -> pandas.DataFrame:
 
204
  data.drop("ID", axis="columns", inplace=True)
205
  data.drop("Own_House_Age", axis="columns", inplace=True)
206
  data.drop("Type_Organization", axis="columns", inplace=True)