Lecture 4: Preprocessing, pipelines, and column transformers
Preprocessing, pipelines, and column transformers
Slides
Course notes
Outline
- Imputation, scaling, and categorical encoding
- Transformers and predictive estimators
- Pipelines and preprocessing within cross-validation
- ColumnTransformer: numeric, categorical, and ordinal branches
- Cross-validating the complete prediction pipeline