pe.dp.dp module
- class pe.dp.dp.DP[source]
Bases:
ABC
The abstract class for Differential Privacy (DP) histogram mechanism.
- abstract add_noise(syn_data)[source]
Add noise to the histogram of synthetic data.
- Parameters:
syn_data (
pe.data.Data
) – The synthetic data to add noise
- abstract set_epsilon_and_delta(num_iterations, epsilon, delta, noise_multiplier)[source]
Set the epsilon and delta for the DP mechanism. Either epsilon or noise_multiplier should be None.
- Parameters:
num_iterations (int) – The number of PE iterations
epsilon (float or None) – The epsilon value of DP
delta (float) – The delta value of DP
noise_multiplier (float or None) – The noise multiplier of the DP mechanism