Ah ok, got it! So did you find a difference between resampling and weighting in terms of accuracy and computational efficiency?
I usually use loss weighting, but once I had an extremely unbalanced data set, so that most batches would have not seen any samples from one class - that’s where I used the sampling, but I would be really interested in what the overall differences are! Maybe you could share your findings