jax_privacy.accounting.dpsgd_event

Contents

jax_privacy.accounting.dpsgd_event#

jax_privacy.accounting.dpsgd_event(noise_multiplier, iterations, *, sampling_prob)[source]#

Returns the DpEvent for DP-SGD with the given training parameters.

This mechanism is a composition of Poisson-sampled Gaussian mechanisms. See this paper for more details:

Parameters:
  • noise_multiplier (float) – The noise multiplier of the mechanism.

  • iterations (int) – The number of iterations to run the mechanism for.

  • sampling_prob (float) – The Poisson sampling probability of the mechanism, i.e., the probability an example will be included in each batch.

Return type:

DpEvent

Returns:

A DpEvent object.