ptrblck:

WeightedRandomSampler


Thanks,
Could you explain me briefly what’s the purpose of WeightedRandomSampler? I found an answer you gave here few years ago and I used it, everything ok but I don’t know how exactly I did for my imbalanced data.
Also is it ok that I used both WeightedRandomSampler with reduction = mean?