PrivacyConfig

class PrivacyConfig(target_delta: float, population_size: int, neighboring_relation: NeighboringRelation, sampling_method: SamplingMethod, max_epsilon: float | None = None)[source]

Bases: object

Configure cumulative client-level privacy accounting.

Parameters:
  • target_delta (float) -- Default delta used when reporting the cumulative epsilon.

  • population_size (int) -- Size of the stable population from which clients are sampled.

  • neighboring_relation (NeighboringRelation) -- Relation used to define neighboring client populations.

  • sampling_method (SamplingMethod) -- Sampling model used by every composed privacy event.

  • max_epsilon (float or None) -- Optional privacy-budget limit used for prospective checks.

Methods

Attributes

max_epsilon

target_delta

population_size

neighboring_relation

sampling_method