Model Hubs & Serving

imbalanced-learn

Python library for handling imbalanced datasets with sampling techniques.

Status
Generally available
Last checked
Checked · Nov 28, 2026
License
Open source
Pricing
Free tier · from $0

What it is

imbalanced-learn is a Python module that provides various under-sampling and over-sampling techniques to handle imbalanced datasets, which are common in machine learning tasks. It helps improve model performance by balancing the class distribution.

imbalanced-learn stands out by offering a wide range of sampling techniques directly compatible with scikit-learn pipelines, making it easy to integrate into existing machine learning workflows without significant overhead.

Maintenance status

Generally available

Evidence: Actively maintained open-source project.

Read from github.com/scikit-learn-contrib/imbalanced-learn ↗ · last commit Jun 7, 2026 · repository read Nov 28, 2026

Last checked Nov 28, 2026 by an automated check of its repository, package or website.

When it fits — and when it doesn’t

A good fit for

  • Projects dealing with highly imbalanced datasets where minority classes are critical for model performance.

  • Developers looking to integrate sampling techniques directly into their scikit-learn pipelines.

Look elsewhere if

  • Real-time applications requiring immediate response as the library is designed for batch processing.

  • Scenarios where computational resources are extremely limited, given that some oversampling methods can be resource-intensive.

Known weaknesses

Each one links to the public issue, changelog or docs page it came from, where we have one.

  1. 01

    Limited support for advanced techniques beyond SMOTE and ADASYN

    The library primarily focuses on well-known methods like SMOTE and ADASYN, lacking more sophisticated or recent algorithms.

  2. 02

    Poor documentation for complex use cases

    Documentation is thorough for basic usage but lacks examples and explanations for advanced configurations and edge cases.

  3. 03

    Performance issues with large datasets

    Over-sampling techniques like SMOTE can be computationally expensive, leading to slow processing times on large datasets.

  4. 04

    Limited integration support outside of scikit-learn ecosystem

    While it integrates well with scikit-learn pipelines, support for other machine learning frameworks or libraries is minimal.

What it does well

  • Various over-sampling techniques like SMOTE, ADASYN

  • Under-sampling methods including Random Under-Sampling and Tomek Links

  • Pipeline integration with scikit-learn for seamless use in ML workflows

Pricing

Free tier
YesOpen source — free to use
Paid from
$0
Model
Flat rate
Enterprise plan
No

Pricing not independently confirmed — check the vendor’s page.

Set up imbalanced-learn

No step-by-step guide on file yet — the setup page points to the official docs and sign-up.

Open the setup guide →