Skip to main content
QUICK REVIEW

[Paper Review] DESlib: A Dynamic ensemble selection library in Python

Rafael M. O. Cruz, Luiz G. Hafemann|arXiv (Cornell University)|Feb 14, 2018
Time Series Analysis and ForecastingComputer Science17 references23 citations
TL;DR

DESlib is a Python library implementing state-of-the-art dynamic ensemble selection (DES) and dynamic classifier selection (DCS) techniques, designed for seamless integration with scikit-learn. It enables adaptive selection of the most competent classifiers per test instance, improving classification accuracy over static ensemble methods through modular, well-documented, and production-ready implementations with high test coverage and active community support.

ABSTRACT

DESlib is an open-source python library providing the implementation of several dynamic selection techniques. The library is divided into three modules: (i) \emph{dcs}, containing the implementation of dynamic classifier selection methods (DCS); (ii) \emph{des}, containing the implementation of dynamic ensemble selection methods (DES); (iii) \emph{static}, with the implementation of static ensemble techniques. The library is fully documented (documentation available online on Read the Docs), has a high test coverage (codecov.io) and is part of the scikit-learn-contrib supported projects. Documentation, code and examples can be found on its GitHub page: https://github.com/scikit-learn-contrib/DESlib.

Motivation & Objective

  • To provide a unified, open-source Python library for dynamic ensemble and classifier selection methods used in multiple classifier systems.
  • To enable researchers and practitioners to easily integrate and benchmark dynamic selection techniques within existing machine learning workflows.
  • To support both dynamic selection (DES/DCS) and static ensemble baselines for fair comparison and reproducible research.
  • To ensure high code quality, extensive documentation, and compatibility with the scikit-learn ecosystem through standardized API compliance.
  • To facilitate future research by offering a modular, extensible framework for implementing new dynamic selection algorithms.

Proposed method

  • The library is structured into three modules: dcs (dynamic classifier selection), des (dynamic ensemble selection), and static (baseline static ensembles).
  • Each method follows the scikit-learn estimator API, supporting fit(X, y), predict(X), predict_proba(X), and score(X, y) methods for interoperability.
  • Dynamic selection is based on estimating local classifier competence using region-of-competence approaches, with methods categorized by region definition, competence estimation source, and selection strategy.
  • The library supports both homogeneous and heterogeneous base classifiers, including any scikit-learn-compatible estimator.
  • It includes advanced techniques such as online Dynamic Frienemy Pruning (DFP), dynamic weighting, and hybrid selection-weighting strategies.
  • Code is developed with PEP 8 compliance, automated testing via Travis CI, and continuous code quality monitoring via Codacy and codecov.io.

Experimental results

Research questions

  • RQ1How can dynamic ensemble selection techniques be effectively implemented and standardized in a reusable, interoperable Python library?
  • RQ2To what extent does a modular, scikit-learn-compatible library improve reproducibility and adoption of dynamic selection methods in machine learning research?
  • RQ3Can a unified library with both dynamic and static ensemble baselines streamline comparative evaluation of dynamic selection algorithms?
  • RQ4How does the integration of advanced techniques like online DFP and dynamic weighting enhance the performance and flexibility of dynamic selection?
  • RQ5What is the impact of high test coverage, documentation, and community support on the long-term sustainability and adoption of open-source ML libraries?

Key findings

  • DESlib provides production-ready implementations of 15+ dynamic selection techniques, including META-DES, KNORA, DES-P, and DES-RRC, with full scikit-learn API compliance.
  • The library supports both homogeneous and heterogeneous base classifiers, enabling flexible deployment across diverse machine learning pipelines.
  • It includes static ensemble baselines such as Oracle, Single Best, Static Selection, and Stacked Generalization for fair performance comparison.
  • The library is actively maintained with 7 contributors, 500 weekly visitors, and is part of the official scikit-learn-contrib project ecosystem.
  • All methods are fully documented with examples on Read the Docs, and the codebase features high test coverage and automated quality checks via Travis CI and Codacy.
  • Future extensions include support for dynamic selection in One-Class Classification and regression, expanding the library’s applicability to new learning paradigms.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.