Release History

Version 0.2.0 (2023.02)

Enhancement:

  • Enable CircleCI with CodeCov report.

  • Easier usage:

    • the package is now imported as imbens

    • all samplers can be directly accessed in imbens.sampler

Maintenance:

  • Complement unit tests (59% -> 96% coverage).

  • Set default k_neighbors=1 for SMOTEBagging to prevent error in few-shot cases.

  • Set default cluster_balance_threshold=0.1 for KmeansSMOTEBoost to prevent error in few-shot cases.

  • Add decision_function() for supported ensemble classifiers.

  • The parameter base_sampler is renamed to sampler.

  • The attribute base_sampler_ is renamed to sampler_.

  • Bump supported Python version to 3.8, 3.9, 3.10, 3.11.

  • Following sklearn version >1.2, for all ensemble classifiers,

    • the parameter base_estimator is renamed to estimator.

    • the attribute base_estimator_ is renamed to estimator_.

Bug Fixes:

  • Add missing comma in the INSTALL_REQUIRES list which breaks conda env export.

  • Fix BalanceCascade and SelfPacedEnsemble’s _make_sampler() behaviour.

  • Fix BalanceCascade and SelfPacedEnsemble parameter check.

  • Fix cost_matrix type check for cost-sensitive methods

  • Fix SVMSMOTE with sample_weight

  • Fix CompatibleAdaBoost with train_verbose

  • Fix samplers in/output type consistency

Version 0.1.7 (2022.01)

Enhancement:

Documentation:

Version 0.1.6 (2021.11)

Enhancement:

Bug Fixes:

  • Fixed Resampling + Bagging models (e.g., OverBagging) raise error when used with base estimators that do not support sample_weight (e.g., sklearn.KNeighborsClassifier).

  • Fixed AttributeError occurs when initializing bagging-based models.

Version 0.1.5 (2021.08)

Enhancement:

Bug Fixes:

Version 0.1.4 (2021.06)

Enhancement:

Documentation:

Maintenance:

  • imbens.utils.testing.all_estimators() now support 'ensemble' type_filter.

  • Renamed some functions in imbens.utils._validation_param to improve readability

Bug Fixes:

Version 0.1.3 (2021.06)

Bug Fixes:

Version 0.1.2 (2021.05)

Enhancement:

Maintenance:

  • All ensemble classifiers now can be directly imported from the imbens.ensemble module.

  • The default value of train_verbose of Classifier.fit(): True -> False.

  • The default value of n_estimators of Classifier.__init__(): 50 for all ensemble classifiers.

  • The default value of granularity of Visualizer.fit(): 5 -> None (automatically determined).

  • imbens.visualizer.ImbalancedEnsembleVisualizer.confusion_matrix_heatmap(): swap rows and columns, now rows/columns correspond to datasets/methods.

Bug Fixes:

Version 0.1.1 (2021.05)

Bug Fixes:

Version 0.1.0 (2021.05)

Initial release.