Oversampling for imbalanced data #10005
Replies: 2 comments 2 replies
-
PL doesn't take care of this. You can simply configure a weighted sampler and inject it to your datalaoder. |
Beta Was this translation helpful? Give feedback.
-
Hey @rohitgr7 , i tried exactly that with creating a ImageClassificationData.from_data_frame(
...
sampler=WeightedRandomSampler
) It seems that the behaviour in I also found this in the docs: It is expected to no longer pass a sampler instance, but a sampler class. I am wondering how i can pass all the parameters of the WeightedRandomSampler to this piece of code. I was not able to do it. Should i open up a ticket or do you have any idea ? Thank you |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm new to pytorch lightning. I'm trying to train on a very imbalanced dataset. I'm wondering if there is a way to do the oversampling with PL?
Beta Was this translation helpful? Give feedback.
All reactions