scikit-learn-contrib / category_encoders

A library of sklearn compatible categorical variable encoders
http://contrib.scikit-learn.org/category_encoders/
BSD 3-Clause "New" or "Revised" License
2.41k stars 396 forks source link

Add Unary/ Thermometer Encoding #299

Closed iki77 closed 1 year ago

iki77 commented 3 years ago

Add Unary/Thermometer Encoding as an alternative for Ordinal Encoding. According to Source it is also more robust to adversarial examples

glevv commented 2 years ago

This is an alternative to one hot encoding, not ordinal. It could be interesting and should be relatively easy to do, but I'm not sure this algorithm will be better than OHE. I think it could be added as a parameter to existing OHE implementation.

P.S. It was in the works but right now nobody is doing it

PaulWestenthanner commented 1 year ago

I've finally worked on this. This issue is a duplicate of #199 anyway right?

PaulWestenthanner commented 1 year ago

added in #222