jax_privacy.execution_plan.CyclicInnerStrategy

jax_privacy.execution_plan.CyclicInnerStrategy#

class jax_privacy.execution_plan.CyclicInnerStrategy(value)[source]#

Bases: StrEnum

Specifies the “inner” sampling strategy for cyclic sampling strategies.

Both options assign each example to one of num_bands groups, and only let a group participate in iterations matching its index modulo num_bands. They differ in how participations are chosen within the iterations a group is eligible for.

Attributes

POISSON

Each example participates in each eligible iteration independently with a fixed probability, so the number of participations is random.

RANDOM_ALLOCATION

Each example participates in exactly expected_participations of 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_participations of its eligible iterations, chosen uniformly at random. See RandomAllocationSampling.