Tackling class imbalance in PyTorch Geometric #2468
Unanswered
JopVerbeek
asked this question in
Q&A
Replies: 1 comment
-
Yes, you can also do that in PyG, too. We make use of the PyTorch |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am currently building a graph classification network using PyTorch Geometric. The dataset I am using unfortunately has large class imbalances. I was wondering if there is a straightforward method to tackle this, like for example in regular PyTorch I can implement WeightedRandomSampler() in the DataLoader itself. Is this maybe also possible in the PyTorch Geometric DataLoader or do I need alter the DataLoader class in order to be able to use, for example, WeightedRandomSampler?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions