jax_privacy.execution_plan.CyclicInnerStrategy#
- class jax_privacy.execution_plan.CyclicInnerStrategy(value)[source]#
Bases:
StrEnumSpecifies the “inner” sampling strategy for cyclic sampling strategies.
Both options assign each example to one of
num_bandsgroups, and only let a group participate in iterations matching its index modulonum_bands. They differ in how participations are chosen within the iterations a group is eligible for.Attributes
Each example participates in each eligible iteration independently with a fixed probability, so the number of participations is random.
Each example participates in exactly
expected_participationsof its eligible iterations, chosen uniformly at random.- POISSON = 'poisson'#
Each example participates in each eligible iteration independently with a fixed probability, so the number of participations is random. See
CyclicPoissonSampling.
- RANDOM_ALLOCATION = 'random_allocation'#
Each example participates in exactly
expected_participationsof its eligible iterations, chosen uniformly at random. SeeRandomAllocationSampling.