You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to know the privacy risk for each instance rather than just the overall CAP score.
Expected behavior
Implement a function that retrieves the privacy risk for each instance rather than just the overall CAP score. Or include that information as an attribute of the class that the user can store and use.
The text was updated successfully, but these errors were encountered:
Hi @yleniarotalinti thanks for filing this feature request. We can keep this open and use it for tracking purposes whenever we make progress.
In your feature request, does "instance" refer to a row?
If so, you can achieve this by only passing in 1 row of real data into the CategorialCAP metric. You can then inspect and save a score for each row separately. (The average score of all rows is the overall score you are receiving with the full dataset.)
ROW_NUMBER=0real_row=real_data.iloc[[ROW_NUMBER]]
row_score=CategoricalZeroCAP.compute(
real_data=real_row,
synthetic_data=synthetic_data,
key_fields=<yourlistofkeyfields>,
sensitive_fields=<yourlistofsensitivefields>
)
# TODO: loop through all possible row numbers
Let me know if this is an acceptable workaround or if there is some other measure you had in mind.
Problem Description
I would like to know the privacy risk for each instance rather than just the overall CAP score.
Expected behavior
Implement a function that retrieves the privacy risk for each instance rather than just the overall CAP score. Or include that information as an attribute of the class that the user can store and use.
The text was updated successfully, but these errors were encountered: