missing_indices were calculated twice in OrdinalEncoder #27011
Closed
xuefeng-xu
started this conversation in
General
Replies: 1 comment 1 reply
-
|
I agree. You are welcome to open a PR with your proposed change. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed that in
OrdinalEncoderthemissing_indiceswere calculated twice, see line 1501 and line 1512.scikit-learn/sklearn/preprocessing/_encoders.py
Lines 1494 to 1521 in 38a06e4
I think line 1511 to 1521 can be replaced by this below.
I can work on this if needed.
Beta Was this translation helpful? Give feedback.
All reactions