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

Region of competence #175

Closed jayahm closed 4 years ago

jayahm commented 4 years ago

How do define the region of competence using clustering method?

Menelau commented 4 years ago

Hello, In the DESClusterigng estimator the region of competence is based on the K-Means clustering algorithm over the training data.

The region of competence of a given x_test is defined by the cluster with the nearest centroid.

jayahm commented 4 years ago

So, there is no clustering approach for defining the region on OLA, LCA and etc methods?

Menelau commented 4 years ago

Hello @jayahm

Unfortunately, these methods can only work with KNN as the implementation of these methods was made following the original publications.

I have plans in the future to refactor the library in a way that all methods could select clustering as a method for defining the region of competence.

jayahm commented 4 years ago

@Menelau That is great. It would be great if that is possible as more explorations can be carried out.