category_encoders icon indicating copy to clipboard operation
category_encoders copied to clipboard

No need to check if # of dimensions of testing set align with training set in target_encoder

Open hongG1997EQ opened this issue 2 years ago • 1 comments

https://github.com/scikit-learn-contrib/category_encoders/blob/6a13c14919d56fed8177a173d4b3b82c5ea2fef5/category_encoders/utils.py#L322-L323

For the function _check_transform_inputs(), I do not want it to report error when # of dimensions for testing set don't align with training set. However, the default is it has to align. Considering that the purpose of target encoder is to transform designated columns using target encoders, nothing else, logically we don't have to validate the dimension alignment.

hongG1997EQ avatar Aug 28 '22 19:08 hongG1997EQ

plase have a look at the dicussion in #355
is this a duplicate of that issue?

PaulWestenthanner avatar Sep 05 '22 09:09 PaulWestenthanner