RDPAccountant

class opacus.accountants.rdp.RDPAccountant[source]
get_epsilon(delta, alphas=None)[source]

Return privacy budget (epsilon) expended so far.

Parameters:
  • delta (float) – target delta

  • alphas (Optional[List[Union[float, int]]]) – List of RDP orders (alphas) used to search for the optimal conversion between RDP and (epd, delta)-DP

classmethod mechanism()[source]

Accounting mechanism name

Return type:

str

step(*, noise_multiplier, sample_rate)[source]

Signal one optimization step

Parameters:
  • noise_multiplier (float) – Current noise multiplier

  • sample_rate (float) – Current sample rate