scikit-learn-contrib/imbalanced-learn
A Python Package to Tackle the Curse of Imbalanced Datasets in Machine Learning
This tool helps data scientists and machine learning engineers build more accurate predictive models when their datasets have unequal numbers of examples across different categories. It takes a raw, imbalanced dataset and processes it using various re-sampling techniques to create a more balanced dataset, which then leads to improved model performance, especially for the under-represented categories. This is particularly useful for tasks where correctly identifying rare events is critical.
7,090 stars. Used by 23 other packages. Actively maintained with 1 commit in the last 30 days. Available on PyPI.
Use this if your machine learning model struggles to accurately predict outcomes for minority classes because your training data has significantly fewer examples for those classes.
Not ideal if your dataset is already well-balanced across all categories, or if your primary goal is not classification on imbalanced data.
Stars
7,090
Forks
1,328
Language
Python
License
MIT
Category
Last pushed
Feb 02, 2026
Commits (30d)
1
Dependencies
6
Reverse dependents
23
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/scikit-learn-contrib/imbalanced-learn"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related frameworks
ZhiningLiu1998/imbalanced-ensemble
🛠️ Class-imbalanced Ensemble Learning Toolbox. | 类别不平衡/长尾机器学习库 [NeurIPS'25]
solegalli/machine-learning-imbalanced-data
Code repository for the online course Machine Learning with Imbalanced Data
ZhiningLiu1998/awesome-imbalanced-learning
😎 Everything about class-imbalanced/long-tail learning: papers, codes, frameworks, and libraries...
getspams/spams-python
Python interface for SPAMS (SPArse Modeling Software)
artefactory/mgs-grf
MGS-GRF for imbalanced-mixed-tabular data (AISTATS 2026 and ECML-PKDD 2025)