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

Include dict comprehension #372

Closed boneyag closed 2 years ago

boneyag commented 2 years ago

Proposed Changes

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

PaulWestenthanner commented 2 years ago

Thanks for pointing that out and fixing it :)