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

object has no attribute '_get_tags' #365

Closed Timaos123 closed 1 year ago

Timaos123 commented 2 years ago

all the encoders encountered the problem of "'XXXEncoder' object has no attribute '_get_tags'"

PaulWestenthanner commented 2 years ago

Hi @Timaos123

can you please provide the version of category encoders you are using as well as a reproducible code snippet leading to the issue you describe

j-sieger commented 2 years ago

@PaulWestenthanner , @Timaos123 : I was facing the same issue with category encoders . I was using ce version of 2.5.1.post0. I have resolved it by upgrading my scikit-learn framework version from 0.20.0 to 1.0-1 in my sagemaker container creation code.

PaulWestenthanner commented 2 years ago

ah that makes sense! Probably we should just drop support for versions < 1 by now

PaulWestenthanner commented 1 year ago

I just added sklearn >= 1.0 to the requirements