← All writing
Evaluation · 5 min read · 29 Nov 2026

Why a Machine Learning Model Is Not an Algorithm

The words get used interchangeably in meetings and in marketing copy, but conflating them leads to sloppy thinking about what you actually built, evaluated, and shipped.

Cover image for the article: Why a Machine Learning Model Is Not an Algorithm

Why this confusion is not harmless

I hear it constantly, in papers, in job adverts, in casual conversation: 'the algorithm predicted churn' or 'we deployed a new algorithm to production'. In almost every one of those cases, what actually went into production was a model, not an algorithm. The words get used as synonyms so often that most people never stop to ask whether they mean the same thing. They do not, and the gap between them is not pedantry. It is the difference between a recipe and the cake that comes out of the oven.

An algorithm is a procedure: a finite, well-defined sequence of steps for solving a problem or performing a computation. Gradient descent is an algorithm. So is the CART splitting rule used to grow a decision tree, or the backpropagation rule used to compute gradients in a neural network. These procedures exist independently of any particular dataset. You could describe gradient descent on a whiteboard without ever mentioning house prices, customer churn, or image pixels.

A model, by contrast, is the specific artefact that results from running a learning algorithm over a specific dataset. It is a set of learned parameters, weights, thresholds, split points, that encode patterns found in that data. The model is what you save to disk, version, and load into a serving pipeline. The algorithm is the method used to produce it. Confusing the two means confusing the process with the output, which is a bit like calling a loaf of bread 'the oven'.

A worked example: linear regression

Take ordinary least squares linear regression as a concrete case. The algorithm is the mathematical procedure for finding the coefficients that minimise the sum of squared residuals, whether you solve it via the closed-form normal equations or iteratively via gradient descent. That procedure is fixed. It does not care whether you are predicting house prices in one city or crop yields in another.

Now suppose I train this algorithm on a dataset of 4,000 houses, using square footage and number of bedrooms as features, and I get coefficients of roughly 180 for square footage and 12,000 for each extra bedroom, with an intercept near 25,000. That specific equation, price equals 25,000 plus 180 times square footage plus 12,000 times bedrooms, is the model. If I retrain the same algorithm on a different dataset of 4,000 houses in a different region, I will get a different model with different coefficients, even though the algorithm itself has not changed at all.

This matters enormously for reproducibility. If a colleague asks what algorithm you used and you say 'linear regression', that is a complete and useful answer, it is reusable knowledge. If they ask what model you used and you give the same answer without specifying the data, the training period, the feature set, and the resulting coefficients, you have told them almost nothing. Two engineers using the identical algorithm on different slices of data, or even the same data split differently, can end up with models that disagree sharply on individual predictions while agreeing completely on method.

The same logic applies to more complex methods. A random forest algorithm describes how to build many decision trees from bootstrapped samples and aggregate their votes. The random forest model is the specific ensemble of trees with specific split thresholds that resulted from training on your particular dataset, with your particular random seed. Change the seed slightly and, especially with small datasets, you can get a meaningfully different model from the same unchanged algorithm.

linear regression scatter plot whiteboard

Why the distinction changes how you work

Once this separation is clear, several practical consequences follow. First, model drift becomes an obvious concept rather than a vague worry. The algorithm does not drift, it is a fixed procedure. What drifts is the relationship between the model's learned parameters and the real-world distribution the model was trained to approximate. When customer behaviour shifts over six months, your random forest algorithm is exactly as valid as it was on day one; it is the specific model, the specific trees fitted to old data, that has gone stale. Retraining means running the same algorithm again on fresh data to produce a new model, not inventing a new algorithm.

Second, this distinction clarifies what reproducibility actually requires. To reproduce a result, you need the algorithm, yes, but you also need the exact training data, the preprocessing steps, the hyperparameters, and often the random seed, because all of these together determine the model. I have seen reproducibility checklists that list 'algorithm used' as the only methodological detail, which is a bit like documenting a cooking procedure while omitting the ingredients and the oven temperature. If you cannot regenerate the same model from the same inputs, your work is not reproducible, regardless of how clearly you named the algorithm.

Third, it reframes how we talk about model comparison and leakage. When someone says 'this algorithm performs better', what they usually mean, and should say, is that a model trained with this algorithm on this dataset outperformed a model trained with a different algorithm on the same dataset, under some evaluation protocol. That phrasing forces you to be explicit about the data split, which in turn makes leakage easier to spot. If your training and test sets overlap in time or in entities, no algorithm, however sophisticated, produces a model that will generalise, and no amount of algorithmic cleverness rescues a flawed split.

Finally, being precise about this helps when communicating with non-technical stakeholders. Saying 'we need to update the algorithm' when you mean 'we need to retrain the model on recent data' sets the wrong expectation; it suggests a change in method, possibly weeks of research, when the actual fix might be an automated retraining job that runs overnight on the existing pipeline.

The practical takeaway

When you catch yourself saying 'algorithm', ask whether you mean the general procedure or the specific thing you trained. If you can swap in different data and still be talking about the same thing, you mean algorithm. If changing the data changes what you are describing, you mean model. It is a small habit, checking which word actually applies, but it sharpens how you document experiments, diagnose drift, and explain results to people who were not in the room when the training run happened. Precision here costs nothing and saves real confusion later.

data scientist laptop charts
← All writing See the project case studies →