mirror of
https://github.com/IBM/ai-privacy-toolkit.git
synced 2026-04-30 07:16:22 +02:00
fix notebook and add features_names to ArrayDataset
and allow providing features names in QI and Cat features not just indexes
This commit is contained in:
parent
137167fb0c
commit
66c86dc595
5 changed files with 89 additions and 74 deletions
|
|
@ -273,7 +273,7 @@ def get_nursery_dataset(raw: bool = True, test_set: float = 0.2, transform_socia
|
|||
raise Exception("Bad label value: %s" % value)
|
||||
|
||||
data["label"] = data["label"].apply(modify_label)
|
||||
data["children"] = data["children"].apply(lambda x: 4 if x == "more" else x)
|
||||
data["children"] = data["children"].apply(lambda x: "4" if x == "more" else x)
|
||||
|
||||
if transform_social:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue