We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbf94ba commit f2d9885Copy full SHA for f2d9885
jax_privacy/batch_selection.py
@@ -248,6 +248,8 @@ def batch_iterator(
248
249
for i in range(self.iterations):
250
current_group = partition[i % self.cycle_length]
251
+ # See Lemma 1 of https://arxiv.org/abs/2406.17298v3 for a proof this
252
+ # is equivalent to Poisson sampling.
253
sample_size = rng.binomial(n=len(current_group), p=self.sampling_prob)
254
if self.truncated_batch_size is not None:
255
sample_size = min(sample_size, self.truncated_batch_size)
0 commit comments