Prototypical-Networks-for-Few-shot-Learning-PyTorch
Prototypical-Networks-for-Few-shot-Learning-PyTorch copied to clipboard
Sampling without replacement
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?