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

Include dict comprehension #372

Closed boneyag closed 1 year ago

boneyag commented 1 year ago

Proposed Changes

Replace dict constructor with dict comprehension In category_encoders/leave_one_out.py, because it is much faster.

PaulWestenthanner commented 1 year ago

Thanks for pointing that out and fixing it :)