Why does the Pytorch WeightedRandomSampler act so weird?

weights should contain sample weights not class weights.
Have a look at this small code snippet.

1 Like