scikit-learn-contrib / DESlib

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

Different types of combiners #235

Closed jayahm closed 3 years ago

jayahm commented 3 years ago

Hi,

I notice that there is aggregation class in util

But, how do I change the aggregation strategy, for example, suing weighted MV for DES methods?

Menelau commented 3 years ago

@jayahm Hello,

In this case, you will need to change the source code to use a different aggregation function. Other aggregation strategies were not added to the DS methods in order to simplify the code.

jayahm commented 3 years ago

So, in case I wanted to use weighted MV from util, how do I get started?

Menelau commented 3 years ago

You should go to the file deslib/des/base.py and get familiar with the classify_with_ds and predict_proba_with_ds methos. Then, you can change the combination scheme from the majority voting to the desired one.