Module 3 · step 4 of 4 · Pipelines and preprocessing
Choose algorithms
Pick candidate algorithms in the Models part and set cross-validation.
App7 min
In this step you choose the candidate algorithms in the Models part, read the cross-validation settings and save the result as a version. It matters because the leaderboard in the next module is only as fair as this setup.
The idea
A run trains several algorithms on the same prepared data and compares them on equal terms. No algorithm wins everywhere, so you compare a few that differ in kind. Logistic Regression is a fast, readable baseline. Random Forest and gradient boosting are strong defaults on tabular data and capture interactions a linear model misses. Every candidate sees the same steps and the same cross-validation folds, so score differences come from the algorithm and not from the setup. The seeded churn pipeline compares three: Logistic Regression, Random Forest Classifier and Gradient Boosting Classifier.
Step by step
- Open your pipeline and select Models in the list of parts (or the tabs on a narrow screen). The page is headed Which models to try: "Choose one or several. They are compared when you run the pipeline."
- Browse the classification algorithms, grouped by family, and use the search box to find one.
- Select Logistic Regression, Random Forest Classifier and Gradient Boosting Classifier. A card appears on the right for each.
- On a card, look at the mode. Automatic uses default parameters; Manual lets you set them under Advanced parameters, and Reset to defaults goes back. Leave Automatic.
- Look at Tuning on a card: None, Random search, Grid search or Bayesian. Leave it on None; tuning comes in the training module.
- Find the Cross-validation card. Read CV folds (default 10) and Fold strategy (for classification, Stratified k-fold; a regression pipeline offers K-fold and Group k-fold).
- Select Save version in the page header. Open Review & run: Train N models names the number of algorithms. Do not select it yet.
Why not train now?
A demo allows 10 runs, one at a time. Saving costs nothing, so you arrive at the training module with a clean pipeline.
Common mistakes
- Selecting no model. Review & run says "Choose at least one model." and offers Go to Models.
- Picking many near-identical models. They add training time and more chances of choosing a winner by luck.
- Assuming Automatic tunes anything. It trains with default parameters; tuning is the separate Tuning setting.
- Forgetting Save version: the page shows Unsaved changes, and training would first save a new version.
As a data scientist
Always keep a simple baseline in the list: if it comes close to the complex models, the simple one is easier to explain and cheaper to run. Stratified folds keep the class balance equal in every fold, which matters for a target like churn. Start with few candidates and tune only the finalists.
Checkpoint
You should see two or more algorithm cards on the Algorithms page, a Cross-validation card with CV folds and Fold strategy, and a Train button that names the number of algorithms.