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

Why self.DSEL_target_ is not the same as the original class labels? #231

Closed jayahm closed 3 years ago

jayahm commented 3 years ago

Hi,

My original class label is 0 and 3.

But, when Ic checked using self.DSELtarget, it was 0 and 1.

Does DESlib convert it to this kind of values or there is something wrong in the way I'm using the library?

Menelau commented 3 years ago

We use label encoder to automatically convert labels for faster processing inside of the models (indexing arrays, so it needs to be sequential) as is done in any scikit-learn model. That is also performed as a way to deal with classes that are strings (e.g., cat, dogs).

Em ter., 13 de out. de 2020 às 23:45, jayahm notifications@github.com escreveu:

Hi,

My original class label is 0 and 3.

But, when Ic checked using self.DSELtarget, it was 0 and 1.

Does DESlib convert it to this kind of values or there is something wrong in the way I'm using the library?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/scikit-learn-contrib/DESlib/issues/231, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD6SFZB3NU2RZIX732WJBI3SKUNF5ANCNFSM4SQBUVPQ .

jayahm commented 3 years ago

I see.

Thank very much!