mstz commited on
Commit
1132072
1 Parent(s): f432062

Update nbfi.py

Browse files
Files changed (1) hide show
  1. nbfi.py +2 -1
nbfi.py CHANGED
@@ -124,7 +124,7 @@ features_types_per_config = {
124
  "score_1": datasets.Value("float32"),
125
  "score_2": datasets.Value("float32"),
126
  "score_3": datasets.Value("float32"),
127
- "nr_defaults_in_social_circle": datasets.Value("int8"),
128
  "inquiries_in_last_year": datasets.Value("float32"),
129
  "has_defaulted": datasets.ClassLabel(num_classes=2, names=("no", "yes"))
130
  }
@@ -250,6 +250,7 @@ class NBFI(datasets.GeneratorBasedBuilder):
250
  data["was_reachable_at_work"] = data["was_reachable_at_work"].apply(bool)
251
  data["same_residence_and_home"] = data["same_residence_and_home"].apply(bool)
252
  data["same_work_and_home"] = data["same_work_and_home"].apply(bool)
 
253
  data["residence_density"] = data["residence_density"].apply(float)
254
 
255
  data = data.astype({
 
124
  "score_1": datasets.Value("float32"),
125
  "score_2": datasets.Value("float32"),
126
  "score_3": datasets.Value("float32"),
127
+ "nr_defaults_in_social_circle": datasets.Value("bool"),
128
  "inquiries_in_last_year": datasets.Value("float32"),
129
  "has_defaulted": datasets.ClassLabel(num_classes=2, names=("no", "yes"))
130
  }
 
250
  data["was_reachable_at_work"] = data["was_reachable_at_work"].apply(bool)
251
  data["same_residence_and_home"] = data["same_residence_and_home"].apply(bool)
252
  data["same_work_and_home"] = data["same_work_and_home"].apply(bool)
253
+ data["nr_defaults_in_social_circle"] = data["same_work_and_home"].apply(bool)
254
  data["residence_density"] = data["residence_density"].apply(float)
255
 
256
  data = data.astype({