scikit-learn-contrib / DESlib

A Python library for dynamic classifier and ensemble selection
BSD 3-Clause "New" or "Revised" License
479 stars 106 forks source link

Label encoder static #227

Closed Menelau closed 3 years ago

Menelau commented 3 years ago

Fixing label encoder problem in the SingleBest model. The problem appears in a very specific scenario where the pool of classifiers is a BaseEnsemble from sklearn (e.g., RandomForestClassifier, BaggingClassifier) and the base models are already using label encoder (however having classes as float instead of integers).

This PR fixes #221