← Back to Resources

Baseline Models: Why You Should Always Build One First

Practical Resources - AI Engineering

Before building anything sophisticated, build the simplest possible model that could plausibly work. This feels like a step you can skip to save time; in practice, skipping it usually costs you more time than it saves.


What counts as a baseline:

Why is this important?

How to use it going forward: every time you try a new model, feature, or technique, compare it explicitly against the baseline (and against your previous best result), not in isolation. A model that improves on the baseline by 1% might not be worth the added complexity and training cost it introduces — that's a judgement call the baseline lets you actually make, instead of guessing.

Where to go deeper: scikit-learn's DummyClassifier and DummyRegressor implement common baseline strategies (majority class, stratified random, mean/median prediction) with one line of code, making it easy to set a baseline before writing anything more complex.