AutoML Pipeline
A trained model is rarely the whole answer. Before the model ever sees a row, something filled in the missing values, turned text categories into numbers and put the columns on a comparable scale — and every one of those steps has to happen identically when a prediction is served. An AutoML pipeline is that full chain, discovered automatically and handed back as a single object.
What is in the chain
- Preprocessing — imputation, encoding, scaling and outlier handling, chosen per column type.
- Feature work — selection, dimensionality reduction, sometimes generated features.
- The estimator — the learner itself together with its hyperparameters.
- The combiner — stacking or weighted ensembling, when the search keeps several candidates.
Why the whole chain is searched at once
The best classifier depends on how the data was prepared: one-hot encoding suits linear models, target encoding suits gradient boosting, and scaling is decisive for neighbour-based methods and irrelevant for trees. Searching the steps separately finds a locally good preprocessor beside an unrelated locally good model. auto-sklearn and TPOT instead treat the pipeline as the unit of optimisation, and TPOT evolves its shape as well as its settings.
What you get back
A fitted pipeline is serialisable and refittable, with the same fit-and-predict interface as a single estimator. That is what makes it deployable: the transformations travel with the weights, so training and serving cannot drift apart — the most common reason a model that scored well on a laptop fails in production.
An AutoML pipeline is the complete chain an automated system produces — preprocessing, encoding, feature selection, the estimator with its hyperparameters, and any ensembling step — fitted as one reusable object. Searching the whole chain matters because the best model depends on how the data was prepared, so optimising the stages separately misses that interaction. Bundling them also keeps training and serving transformations identical.
Think of a kitchen rather than a chef. Before anything is cooked, the vegetables are washed, peeled and chopped and the oven is set to the right temperature. Change any of those and the dish comes out differently.
An AutoML pipeline is the whole kitchen, worked out by the software. It decides how to tidy up the messy spreadsheet — fill the blanks, turn words like Delhi into numbers, put everything on a comparable scale — and then which prediction method to use, trying those choices together rather than one at a time. What you get back is a single package that repeats every step exactly, so tomorrow's data is treated just like today's.