Prototypical-Networks-for-Few-shot-Learning-PyTorch icon indicating copy to clipboard operation
Prototypical-Networks-for-Few-shot-Learning-PyTorch copied to clipboard

Sampling without replacement

Open astrocyted opened this issue 3 years ago • 0 comments

In the original paper in "Algorithm 1", they mention that each batch is sampled "without replacement":

... RANDOMSAMPLE(S, N) denotes a set of N elements chosen uniformly at random from set S, without replacement.

where as your sampler class clearly samples with replacement as you even pass the number of iterations as an argument to the class constructor. may i ask why?

astrocyted avatar Jun 17 '22 18:06 astrocyted