❖ DPWeightedResponseRandomizer
Compatibility: categorical data
The DPWeightedResponseRandomizer uses differential privacy techniques to add noise to your data. It adds noise to categorical data using the randomized response mechanism, using weights to account for imbalanced frequencies.
As a result, the entire column of transformed data will have differential privacy guarantees. (This transformer does not do anything on the reverse transform, as it is not possible to undo the differential privacy noise.)

from rdt.transformers.categorical import DPWeightedResponseRandomizer
transformer = DPWeightedResponseRandomizer(epsilon=4)Parameters
(required) epsilon: A float >0 that represents the privacy loss budget you are willing to accommodate.
FAQ
Last updated
