Hi,
I don’t understand the importance of entering the preprocessor name to create a ColumnTransformer object ? What is the use of this parameter in the class ? Can’t it be found from the second parameter ‘transformer’ ?
Hi,
I don’t understand the importance of entering the preprocessor name to create a ColumnTransformer object ? What is the use of this parameter in the class ? Can’t it be found from the second parameter ‘transformer’ ?
ColumnTransformer
requires you to provide aliases to the different steps similarly to Pipeline
.
If you use make_column_transformer
, the alias will be set by default, similarly to make_pipeline.
Because of the above, Pipeline
and ColumnTransformer
are more flexible and can be helpful to avoid ambiguities when dealing with very complex models. In this course it is probably enough to use the automatic naming.
Ok I understand.
Thank you for your answer !