Skip to main content
Ctrl+K
Version 0.14.dev0 - Home Version 0.14.dev0 - Home
  • Getting Started
  • User Guide
  • API reference
  • Examples
  • Release history
    • About us
  • GitHub
  • Getting Started
  • User Guide
  • API reference
  • Examples
  • Release history
  • About us
  • GitHub

Section Navigation

  • Examples showing API imbalanced-learn usage
    • How to use sampling_strategy in imbalanced-learn
  • Examples based on real world datasets
    • Multiclass classification with under-sampling
    • Example of topic classification in text documents
    • Customized sampler to implement an outlier rejections estimator
    • Benchmark over-sampling methods in a face recognition task
    • Porto Seguro: balancing samples in mini-batches with Keras
    • Fitting model on imbalanced datasets and how to fight bias
  • Examples using combine class methods
    • Compare sampler combining over- and under-sampling
  • Dataset examples
    • Create an imbalanced dataset
  • Example using ensemble class methods
    • Bagging classifiers using sampler
    • Compare ensemble classifiers using resampling
  • Evaluation examples
    • Evaluate classification by compiling a report
    • Metrics specific to imbalanced learning
  • Model Selection
    • Plotting Validation Curves
  • Example using over-sampling class methods
    • Sample generator used in SMOTE-like samplers
    • Effect of the shrinkage factor in random over-sampling
    • Compare over-sampling samplers
  • Pipeline examples
    • Usage of pipeline embedding samplers
  • Example using under-sampling class methods
    • Illustration of the definition of a Tomek link
    • Sample selection in NearMiss
    • Compare under-sampling samplers
  • Examples
  • Example using under-sampling class methods

Example using under-sampling class methods#

Under-sampling refers to the process of reducing the number of samples in the majority classes. The implemented methods can be categorized into 2 groups: (i) fixed under-sampling and (ii) cleaning under-sampling.

Illustration of the definition of a Tomek link

Illustration of the definition of a Tomek link

Sample selection in NearMiss

Sample selection in NearMiss

Compare under-sampling samplers

Compare under-sampling samplers

previous

Usage of pipeline embedding samplers

next

Illustration of the definition of a Tomek link

Edit on GitHub

This Page

  • Show Source

© Copyright 2014-2025, The imbalanced-learn developers.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.1.