Handling Imbalanced Dataset
How to handled imbalanced dataset?
- Oversampling
- Undersampling
- Create Synthetic examples
- Weighted Loss (weight in CrossEntropyLoss — PyTorch 2.5 documentation)
- Use algorithms which are not susceptible to Imbalanced dataset