Module 3 · step 1 of 4 · Pipelines and preprocessing
Create a pipeline
Open the seeded churn pipeline, then create your own and validate it in Pipeline Studio.
App8 min
In this step you open the churn pipeline the demo created, read it, and then build your own on the same data and validate it without training anything. It matters because the pipeline is the unit everything else in mlflow hangs from: runs, models and deployments all point back to a pipeline version.
The idea
A pipeline is a recipe: a dataset, an ordered list of preprocessing steps and a selection of algorithms to compare. You write it in Pipeline Studio, whose editor has three parts: Columns (what happens to each column), Models (which algorithms to try) and Review & run (the check and the Train button). The same steps run on the training rows and on every row scored later, so you never prepare data by hand in one place and forget it in another. Each save creates a numbered version, so you can try a change and still go back.
Step by step
- Select Pipelines in the sidebar. The list shows the seeded churn pipeline with its number of steps, its task and its latest version.
- Open it. The flow bar shows Pipeline as the current stage. In Columns, read the dataset strip (name, rows and columns, and what it predicts), then the table: one row per column, with its type, sample values, how many are empty and the transformations chosen for it as chips. Press a chip to see what it does and a Before and after of that column. Steps in order lists every step as it runs; press any step to see it or redo it in one panel.
- Go back to Pipelines, select New, then New pipeline.
- Fill in the dialog: a Name such as
churn practice, the Task Classification, the Dataset (the employee sample) and the Target columnleft. Select Create pipeline. - The editor opens with an empty Steps in order list. Open Review & run: it says "The columns go in as they are. Missing values and categories are prepared automatically." Select Check without running. You should see "All good" and the number of columns that reach the models, because a pipeline with no steps is still valid.
- Look at the page header. Changes in the editor only mark the pipeline Unsaved changes; Save version creates the next version, so nothing is overwritten.
Do not train yet
The demo allows 10 training runs. Leave Train N models alone for now; the next steps add preprocessing and algorithms first, and the training module covers runs.
Common mistakes
- Choosing the wrong target. It is fixed when you create the pipeline; the dataset strip says "Chosen when the pipeline was created. To predict another column, duplicate the pipeline from the list and pick another target."
- Leaving the editor with edits that are not saved. The app asks "Leave without saving?" and warns that your changes are lost.
- Expecting Check without running to train. It only simulates the steps on the real dataset; it never fits a model.
As a data scientist
Fix the question before the recipe: the task and the target decide what every later metric means, so read them twice in the dialog. Write preparation as pipeline steps rather than editing the file by hand, because that is what makes a result reproducible and lets a deployed model accept raw values. Change one thing per version so you know which change moved the score.
Checkpoint
You should see a new pipeline in the editor and, after Check without running, a message that starts with All good and tells you how many columns reach the models.