jax_privacy.experimental.monte_carlo.delta_calculation.minimum_samples_to_calibrate

jax_privacy.experimental.monte_carlo.delta_calculation.minimum_samples_to_calibrate#

jax_privacy.experimental.monte_carlo.delta_calculation.minimum_samples_to_calibrate(base_delta, target_delta, support_bound=1.0)[source]#

The minimum number of samples needed to calibrate to target_delta.

Parameters:
  • base_delta (float) – The base_delta such that we use Monte Carlo verification to check if each mechanism satisfies (epsilon, base_delta)-DP.

  • target_delta (float) – The value such that we want to report the overall mechanism of Monte Carlo verification and then running the best verified mechanism is (epsilon, target_delta)-DP.

  • support_bound (float) – An upper bound on each (weighted) sample of the hockey-stick divergence. See get_overall_delta().

Return type:

int

Returns:

The minimum number of samples needed to calibrate to target_delta.