Weighted Random Sampler

The WeightedRandomSampler expects weights for each sample and uses it to draw the corresponding sample. Here is an example how to use it.

1 Like