mirror of
https://github.com/IBM/ai-privacy-toolkit.git
synced 2026-06-08 15:05:13 +02:00
Formatting
Signed-off-by: abigailt <abigailt@il.ibm.com>
This commit is contained in:
parent
686969eb86
commit
e7a0a6ad85
1 changed files with 2 additions and 2 deletions
|
|
@ -757,8 +757,8 @@ class GeneralizeToRepresentative(BaseEstimator, MetaEstimatorMixin, TransformerM
|
|||
new_cell['categories'][other_feature] = [0]
|
||||
elif len(encoded) == 2:
|
||||
new_cell['categories'][other_feature] = [1]
|
||||
elif (other_feature not in new_cell['categories'].keys() or
|
||||
len(new_cell['categories'][other_feature]) == 0):
|
||||
elif (other_feature not in new_cell['categories'].keys()
|
||||
or len(new_cell['categories'][other_feature]) == 0):
|
||||
new_cell['categories'][other_feature] = [0, 1]
|
||||
else:
|
||||
if feature in cell['ranges'].keys():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue