mirror of
https://github.com/IBM/ai-privacy-toolkit.git
synced 2026-06-02 14:45:13 +02:00
All tests pass, still need to review TODOs
Signed-off-by: abigailt <abigailt@il.ibm.com>
This commit is contained in:
parent
cc4cba0d8e
commit
26adcf3528
1 changed files with 2 additions and 1 deletions
|
|
@ -972,7 +972,8 @@ class GeneralizeToRepresentative(BaseEstimator, MetaEstimatorMixin, TransformerM
|
|||
if 'untouched' in cell:
|
||||
for feature in cell['untouched']:
|
||||
record_copy.pop(feature)
|
||||
representative.pop(feature)
|
||||
if feature in representative:
|
||||
representative.pop(feature)
|
||||
if record_copy == representative:
|
||||
# handle numerical features
|
||||
for feature in [key for key in cell['ranges'].keys() if
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue