You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RFC: prefixing output feature names in ColumnTransformer with passthrough #16444
In ColumnTransformer, #14048 raises the question that whether the output feature name should be prefixed when the transformer is set to passthrough, or the feature is in the output as a part of remainder=passthrough'`.
The PR is mostly finished and awaits a decision on this question, hence opening this issue to discuss the alternatives.
We have the following two options for each case:
prefix the output feature to keep it consistent with the case where there is indeed a transformation happening on the column
do not prefix the output feature name since there has been no transformation done on it.
We don't have to choose the same answer for the two cases (transformer is passthrough or it's a part of the remainder).
I'd say don't prefix anything and pass the name through, in both cases.
This is what SLEP007 recommends (merged but not accepted nor finished yet), and as mentioned there, we might allow to change the default naming behavior with a parameter.
I think we should not prefix in this case.
I think the reason we prefix in other cases is because otherwise the
feature names generated by some constituent transformer are
decontextualised, such as if one had a vectorizer for different columns of
text.
I don't have a strong opinion. I thought the name of the transformer was remainder (say if you want to set a hyper-parameter), so I expected the feature to be prefixed by remainder in this case. But I'm happy to go with what the majority wants.
Activity
NicolasHug commentedon Feb 14, 2020
I'd say don't prefix anything and pass the name through, in both cases.
This is what SLEP007 recommends (merged but not accepted nor finished yet), and as mentioned there, we might allow to change the default naming behavior with a parameter.
jnothman commentedon Feb 16, 2020
amueller commentedon Feb 18, 2020
I don't have a strong opinion. I thought the name of the transformer was
remainder(say if you want to set a hyper-parameter), so I expected the feature to be prefixed byremainderin this case. But I'm happy to go with what the majority wants.adrinjalali commentedon Feb 19, 2020
Cool, I guess we can consider this one resolved then :)