Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Imbalanced-learn: A Python Toolbox to Tackle the Curse of Imbalanced Datasets in Machine Learning

Python toolbox gives scikit-learn users ready-made methods for imbalanced datasets

  • Problem Imbalanced datasets hurt standard learners, and Python had no toolbox of fixes.
  • Method Imbalanced-learn bundles under-sampling, over-sampling, combined methods and ensemble learning in one Python package. Every resampler follows the scikit-learn API, with fit and sample steps that can be chained in a pipeline.
  • Results The unit test suite reaches 99 % coverage for release 0.1.8.

Why imbalanced data stalls standard learners

Many real datasets have one class represented by far fewer samples than the others. This is the class imbalance problem, where learning concentrates on the rare class. Most standard learners expect balanced class distributions or equal misclassification costs, so the skew degrades their results. The problem shows up in telecommunications, bioinformatics, fraud detection and medical diagnosis, and it is ranked among the top 10 problems in data mining and pattern recognition.

Dedicated methods for this skew exist, but they have been implemented mainly in R. The authors found no Python toolbox offering such methods, even though mainstream Python machine learning libraries are mature. So they set out to build a Python toolbox that brings these methods into the Python workflow.

Keeping resampling inside the scikit-learn workflow

The central design choice is to make every resampler behave like a scikit-learn object. Each sampler class has a fit method that computes the parameters needed later, and a sample method that returns the data with the desired balancing ratio. A fit_sample method chains the two, so one call does both steps.

The implementation depends only on numpy, scipy and scikit-learn. A Pipeline class is inherited from scikit-learn, so samplers can be chained with transformers and estimators automatically. This lets resampling sit in the same pipeline as preprocessing and the final classifier.

The listing generates a two-class dataset with 20 features and 5000 samples, then applies SMOTE with the auto ratio and the regular kind. The example shows that the sampler is used like any other scikit-learn transformer, with one fit_sample call that returns resampled features and labels.

What the four strategy groups change in the data

The balancing ratio is the cardinality of the minority class divided by that of the majority class. Every resampling method aims to produce a new dataset with a target balancing ratio.

Under-sampling removes majority samples, and the toolbox splits it into fixed and cleaning methods. Fixed methods reach a chosen balancing ratio using random selection, clustering, the nearest neighbours rule as in NearMiss, or classification accuracy as in the instance hardness threshold. Cleaning methods, by contrast, don't target a ratio, and instead clean the feature space with neighbourhood criteria such as condensed nearest neighbours, edited nearest neighbours, one-sided selection, the neighbourhood cleaning rule and Tomek links.

Over-sampling creates minority samples instead of discarding majority ones. Random over-sampling replicates randomly chosen minority samples, while SMOTE generates new samples between minority samples and their nearest minority neighbours. Two SMOTE variants are available, SMOTE borderline 1 and 2 and SMOTE SVM.

Plain SMOTE can overfit, so the combined group pairs it with a cleaning step. Batista et al. combined SMOTE with either Tomek links or edited nearest neighbours.

Under-sampling throws away majority samples, which ensemble methods avoid by using most of them. EasyEnsemble repeatedly applies random under-sampling to build several balanced subsets, and a classifier is trained on them. BalanceCascade instead uses a classifier at each iteration to decide which randomly selected majority samples are kept, and passes misclassified samples to the next subset.

What the paper checks and what it leaves untested

The main evidence is software quality, measured by unit tests that reach 99 % coverage for release 0.1.8. Code style follows PEP8, each contribution is checked by landscape, and Travis CI integrates new code.

Usage is reported through repository traffic, with the repository visited no less than 2,000 times per week. About 300 unique visitors per week come to the repository. The toolbox is also supported through the scikit-learn-contrib projects. These figures describe interest in the repository.

The paper gives no benchmark comparing the resampling methods on classifier performance. So it doesn't show how much any method improves a classifier on imbalanced data.

Paper info

Authors
Lemaitre, Guillaume, Nogueira, Fernando, Aridas, Christos K.
Venue
arXiv · Preprint
First published
2016-9-21
Added
2026-11-12
Updated
2016-9-21
Version
v1
arXiv
1609.06570
Category
cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Lemaitre, Guillaume, Nogueira, Fernando, Aridas, Christos K. (2016). Imbalanced-learn: A Python Toolbox to Tackle the Curse of Imbalanced Datasets in Machine Learning. arXiv:1609.06570v1. https://arxiv.org/abs/1609.06570v1

BibTeX
@misc{guillaume2016imbalanced,
  title = {{Imbalanced-learn: A Python Toolbox to Tackle the Curse of Imbalanced Datasets in Machine Learning}},
  author = {Lemaitre, Guillaume and Nogueira, Fernando and Aridas, Christos K.},
  year = {2016},
  eprint = {1609.06570},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1609.06570v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up