garge33limer / imbalanced-dataset-sampler
A PyTorch sampler that rebalances class frequencies during training by resampling.
Why this job: works in the areas we cover, but does not say which job it does




What it does
To solve this problem, a widely adopted technique is called resampling. It consists of removing samples from the majority class (under-sampling) and / or adding more examples from the minority class (over-sampling). Despite the advantage of balancing classes, these techniques also have their weaknesses (there is no free lunch). The simplest implementation of over-sampling is to duplicate random records from the minority class, which can cause overfitting. In under-sampling, the simplest technique involves removing random records from the majority class, which can cause loss of information.
Get started
pip install torchsampler- Maintenance
- Active
- Last commit 7 days ago
- Stars
- 50
- On GitHub
- Licence
- MIT
- Allows business use
- Downloads for
- None listed
- No release files
- Latest version
- v1.0.0
- Released 7 days ago
- Built with
- Python
- 100% of the code
Is it looked after?
- Contributors
- Not stated
- Last 90 days
- Issues
- None
- No issues filed
- Pull requests
- 0 merged
- 0 waiting
- Releases
- 1
- 1 in the last year
- No contributing guide
- No security policy
- No code of conduct
Similar repos
| Repo | Stars | Last commit | Licence | Downloads for |
|---|---|---|---|---|
| meta-pytorch / tnt | 1,723 | 3 days ago | Custom | No downloads |
| Albertsr / Class-Imbalance | 110 | 3 months ago | MIT | No downloads |
More: languages, topics and project record
Languages
- Python 100%
Topics
- deep-learning
- imbalanced-data
- machine-learning
- python
- pytorch
- sampler
Project record
- JobOther AI tools
- StatusNew to our list
- Commits1
- Forks0
- Watching0
- CreatedNov 5, 2026
- First seen by usNov 7, 2026
- CheckedNov 8, 2026
