You didn’t explain the issue, so I don’t know what exactly is unexpected.
You could use a WeightedRandomSampler
as explained e.g. here assuming you are working on a multi-class classification.
You didn’t explain the issue, so I don’t know what exactly is unexpected.
You could use a WeightedRandomSampler
as explained e.g. here assuming you are working on a multi-class classification.