Datasets:
Upload compas.py
Browse files
compas.py
CHANGED
@@ -283,7 +283,11 @@ class Compas(datasets.GeneratorBasedBuilder):
|
|
283 |
"v_decile_score",
|
284 |
"two_year_recid"]]
|
285 |
|
|
|
|
|
286 |
data.columns = _BASE_FEATURE_NAMES
|
|
|
|
|
287 |
|
288 |
# binarize features
|
289 |
data.loc[:, "sex"] = data.sex.apply(self.encode_sex)
|
|
|
283 |
"v_decile_score",
|
284 |
"two_year_recid"]]
|
285 |
|
286 |
+
print("data.columns again")
|
287 |
+
print(data.columns)
|
288 |
data.columns = _BASE_FEATURE_NAMES
|
289 |
+
print("data.columns again 1")
|
290 |
+
print(data.columns)
|
291 |
|
292 |
# binarize features
|
293 |
data.loc[:, "sex"] = data.sex.apply(self.encode_sex)
|