$npx skillfedfor your agent

imbalanced-learn

Toolbox for imbalanced dataset in machine learning

Worth itPyPI LibrariesReleased Jun 202616.8M downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — imbalanced_learn-0.14.2-py3-none-any.whl
v0.14.2 · released 2026-06-07 · Python >=3.10 · 6 runtime deps: numpy, scipy, scikit-learn, sklearn-compat, joblib, threadpoolctl

Yes. Active maintenance, low install friction, permissive MIT license, and no known vulnerabilities make this a safe choice. It solves a real, common problem in machine learning with a mature, well-integrated API. Install if you work with imbalanced classification datasets.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low friction installation with a pure-Python wheel.
  • Active maintenance with recent releases; last commit 2026-06-29.
  • Depends on well-established scientific Python stack (numpy, scipy, scikit-learn, joblib).

License · maintenance · safety

permissive license (permissive) — MIT license (permissive) allows use in commercial and private projects with minimal restrictions.

last release 2026-06-07 (68 days) · last repo commit 2026-06-29 · 7,117 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 16,822,922 downloads/mo, #1,138 on PyPI

Verify before relying

pip install imbalanced-learn

import imbalanced_learn
from sklearn.datasets import make_classification

X, y = make_classification()
# Use imbalanced-learn resampling techniques in preprocessing pipeline
  • Whether optional dependencies (Pandas, TensorFlow, Keras) are required for core functionality or only for specific features
  • Performance characteristics when handling very large datasets
  • Specific resampling algorithms included and their names
Same gist for agents: .md · .json

What it is and what it does

imbalanced-learn is a scikit-learn-compatible Python toolbox for handling datasets where one class significantly outnumbers others—a common problem in real-world machine learning. It implements multiple re-sampling strategies (both oversampling and undersampling) to balance class distributions before training, helping classification algorithms learn more robust decision boundaries on skewed data.

The package integrates seamlessly into scikit-learn workflows via a standard transformer interface, making it straightforward to include resampling in preprocessing pipelines. It depends on numpy, scipy, scikit-learn, joblib, and threadpoolctl, and supports Python 3.10 through 3.14. The project is actively maintained as part of the scikit-learn-contrib ecosystem.

Use it for

  • Preprocess fraud detection datasets where fraudulent transactions are rare before training a classifier
  • Balance medical diagnosis datasets with few positive cases to improve model sensitivity
  • Prepare imbalanced text classification data for training with rare event prediction
  • Create balanced training sets in credit risk or loan default prediction tasks
  • Handle class imbalance in anomaly detection or rare failure prediction scenarios

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

Active maintenance, low install friction, permissive MIT license, and no known vulnerabilities make this a safe choice. It solves a real, common problem in machine learning with a mature, well-integrated API. Install if you work with imbalanced classification datasets.

Install

imbalanced-learn on PyPI

Before you install

Low friction installation with a pure-Python wheel. Active maintenance with recent releases; last commit 2026-06-29. Depends on well-established scientific Python stack (numpy, scipy, scikit-learn, joblib).

License in practice

MIT license (permissive) allows use in commercial and private projects with minimal restrictions.

Quickstart

pip install imbalanced-learn

import imbalanced_learn
from sklearn.datasets import make_classification

X, y = make_classification()
# Use imbalanced-learn resampling techniques in preprocessing pipeline

Verify before relying

  • Whether optional dependencies (Pandas, TensorFlow, Keras) are required for core functionality or only for specific features
  • Performance characteristics when handling very large datasets
  • Specific resampling algorithms included and their names

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
6 packages
numpyscipyscikit-learnsklearn-compatjoblibthreadpoolctl
MaintenanceActively maintained 68 days since the last release
Last repo commit
First released
Downloads16,822,922 / month, #1,138 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/EngineeringTopic :: Software Development :: Libraries

Evidence: imbalanced_learn-0.14.2-py3-none-any.whl

Tags

Capabilities
class imbalance resamplingimbalanced dataset handlingoversampling undersamplingscikit-learn imbalanceminority class balancingskewed dataset preprocessingresampling techniques
Topics
class-imbalanceresamplingdata-preprocessing

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “class imbalance resampling”

  • imbalanced-learnProvides re-sampling techniques to address class imbalance in machine…
  • imbalance-xgboostWraps XGBoost with weighted and focal loss functions to handle binary…
  • percentifyPercentify provides one-call exploratory statistics and data-quality…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also imbalance-xgboost · imblearn · scikit-learn-extra · scikit-surprise · scikit-learn · bootstrapped · sklearn-compat · forestci · spark-sklearn · river