Pipelines: Every Step, Every Time
A pipeline chains the preparation steps and the model into one object, so make_pipeline(SimpleImputer(), StandardScaler(), LogisticRegression()) fits every step on the data it's given with one fit, repeats the same steps with one predict, names each step for named_steps, and refits every step inside each fold when it's handed to cross_val_score.
Updated

- Category
- Machine Learning
- Level
- Journeyman
- Tags
- ai, fit(), make_pipeline(), Pipeline (python), predict(), python