Loading topic
Pipeline is only a way to chain objects that already agree on how to talk to each other. This chapter covers those conventions: what fit, predict, and transform do, where fitted state is stored, and which 6 min readfit and predict, split data into train and test sets, and use NumPy arrays and pandas DataFrames. It covers the three most common kinds of preprocessing transformer: scalers, imputers, and encoders. You will learn what each one learns du6 min readfit and predict and split data with train_test_split. It also assumes you know the fit/transform pattern from the previous chapters. The goal is to explain what data leakage is, show how it enters a workflow that looks harmless, an7 min readfit and predict, split data with train_test_split, and read basic NumPy arrays. You should also know what a transformer such as StandardScaler does. Earlier chapters covered the estimator API, common transformers, and why preprocessi6 min readPipeline sends every column through every step, so it can't express this. ColumnTransformer can: it applies a different transformer to each group of columns an6 min readtrain_test_split, fit an estimator with fit and predict, and build a Pipeline or make_pipeline object. You should also know what a ColumnTransformer does. This chapter covers what happens when you hand a pipeline to the cross-validation tools, why t6 min readPipeline or make_pipeline object. It also assumes you know how to run cross_val_score on one, and how ColumnTransformer groups columns. You will use that knowledge to tune settings in every step of a pipeline, using one search object and one cross-validat5 min readpredict and get numbers, but you can't tell which columns the model received, how a scaler shifted them, or which coefficient belongs to which feature. This chapter covers how to look inside a fitted pipeline and how to trace the outp6 min readPipeline, a ColumnTransformer, and GridSearchCV like any b6 min readPipeline or make_pipeline object, and that you know what fit, predict, and transform do. You should also be comfortable running Python scripts from a terminal. Earlier chapters covered ColumnTransformer and custom transformers. Here they matte8 min readPipeline, read step__parameter names, and have met ColumnTransformer. It also assumes you know why fitting a transformer outside cross-validation leaks information. The goal is to learn when to build features in parallel and how to keep that parallel step s6 min readPipeline, you know GridSearchCV and the step__parameter naming convention, and you understand cross-validation folds. It covers the memory parameter of Pipeline. The parameter stores the output of fitted transformers on disk, so a search does not repeat6 min read