Imbalanced Learn Versions Save

A Python Package to Tackle the Curse of Imbalanced Datasets in Machine Learning

0.12.2

3 weeks ago

Changelog

Bug fixes

0.12.1

3 weeks ago

Changelog

Bug fixes

Compatibility

0.12.0

3 months ago

Changelog

Bug fixes

Compatibility

Deprecations

Enhancements

  • Allows to output dataframe with sparse format if provided as input. #1059 by ts2095.

0.11.0

9 months ago

Changelog

Bug fixes

Compatibility

Deprecation

Enhancements

  • SMOTENC now accepts a parameter categorical_encoder allowing to specify a OneHotEncoder with custom parameters. #1000 by Guillaume Lemaitre.

  • SMOTEN now accepts a parameter categorical_encoder allowing to specify a OrdinalEncoder with custom parameters. A new fitted parameter categorical_encoder_ is exposed to access the fitted encoder. #1001 by Guillaume Lemaitre.

  • RandomUnderSampler and RandomOverSampler (when shrinkage is not None) now accept any data types and will not attempt any data conversion. #1004 by Guillaume Lemaitre.

  • SMOTENC now support passing array-like of str when passing the categorical_features parameter. #1008 by :userGuillaume Lemaitre <glemaitre>.

  • SMOTENC now support automatic categorical inference when categorical_features is set to "auto". #1009 by :userGuillaume Lemaitre <glemaitre>.

0.10.1

9 months ago

Changelog

Bug fixes

  • Fix a regression in over-sampler where the string minority was rejected as an unvalid sampling strategy. #964 by Prakhyath07.

0.10.0

1 year ago

Changelog

Bug fixes

  • Make sure that Substitution is working with python -OO that replaces doc by None. #953 bu Guillaume Lemaitre.

Compatibility

Deprecation

Enhancements

  • Add support to accept compatible NearestNeighbors objects by only duck-typing. For instance, it allows to accept cuML instances. #858 by NV-jpt and Guillaume Lemaitre.

0.9.1

1 year ago

Compatibility with scikit-learn 1.1.0

0.9.0

2 years ago

Compatibility with scikit-learn 1.0.2

0.8.1

2 years ago

Version 0.8.1

September 29, 2021

Maintenance

Make imbalanced-learn compatible with scikit-learn 1.0. #864 by Guillaume Lemaitre.

0.8.0

3 years ago

Version 0.8.0

February 18, 2021

Changelog

New features

  • Add the the function imblearn.metrics.macro_averaged_mean_absolute_error returning the average across class of the MAE. This metric is used in ordinal classification. #780 by Aurélien Massiot.
  • Add the class imblearn.metrics.pairwise.ValueDifferenceMetric to compute pairwise distances between samples containing only categorical values. #796 by Guillaume Lemaitre.
  • Add the class imblearn.over_sampling.SMOTEN to over-sample data only containing categorical features. #802 by Guillaume Lemaitre.
  • Add the possibility to pass any type of samplers in imblearn.ensemble.BalancedBaggingClassifier unlocking the implementation of methods based on resampled bagging. #808 by Guillaume Lemaitre.

Enhancements

  • Add option output_dict in imblearn.metrics.classification_report_imbalanced to return a dictionary instead of a string. #770 by Guillaume Lemaitre.
  • Added an option to generate smoothed bootstrap in `imblearn.over_sampling.RandomOverSampler. It is controled by the parameter shrinkage. This method is also known as Random Over-Sampling Examples (ROSE). #754 by Andrea Lorenzon and Guillaume Lemaitre.

Bug fixes

  • Fix a bug in imblearn.under_sampling.ClusterCentroids where voting="hard" could have lead to select a sample from any class instead of the targeted class. #769 by Guillaume Lemaitre.
  • Fix a bug in imblearn.FunctionSampler where validation was performed even with validate=False when calling fit. #790 by Guillaume Lemaitre.

Maintenance

  • Remove requirements files in favour of adding the packages in the extras_require within the setup.py file. #816 by Guillaume Lemaitre.
  • Change the website template to use pydata-sphinx-theme. #801 by Guillaume Lemaitre.

Deprecation

  • The context manager imblearn.utils.testing.warns is deprecated in 0.8 and will be removed 1.0. #815 by Guillaume Lemaitre.