Study
Machine Learning · scikit-learn pipelines
Combining preprocessing and model with Pipeline and ColumnTransformer for mixed numeric and categorical data, so one object is fitted, tuned and saved.
- A Pipeline makes preprocessing part of the model, so it is fitted only on training folds.
- ColumnTransformer applies different preprocessing to numeric and categorical columns in one step.