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.39k stars 393 forks source link

Fix for sklearn-pandas-out and refit #438

Closed bmreiniger closed 3 months ago

bmreiniger commented 3 months ago

Fixes #437

Proposed Changes

Resets feature_names_out_ before applying transform (in case the latter uses the former, as when sklearn is set to pandas-output).

bmreiniger commented 3 months ago

py3.7 fails because I guess the version of sklearn that adds pandas-output doesn't support 3.7? I could decorate the test to skip it in 3.7, but am open to better fixes.

PaulWestenthanner commented 3 months ago

great work Ben. Thanks for fixing this!