)
Series 1 · Machine Learning Fundamentals

The Prediction Problem

Almost every machine-learning task, at its core, reduces to the same mathematical problem: given a set of input variables, predict the value of the output variables.

← All topics
Four prediction tasks — regression, classification, generation and captioning — all framed as inputs predicting outputs.

Before any talk of neural networks or transformers, there is one idea that has to be settled first, because the whole theory of machine learning rests on it: the prediction problem. Every machine-learning task can in fact be reduced to a single mathematical problem:

Given a set of N input variables, predict the value of M output variables.

That’s it. What changes from one application to the next is only what the inputs and outputs are — and that change of costume is what gives each task its own name.

A few examples from the world I work in:

Regression, classification, generation, captioning, …: many tasks, one problem. Once you see that, the rest of this series is really the story of how machines learn to solve that basic problem effectively — how they turn “predict the output from the input” into something a computer can actually learn to do, rather than something a human has to program.

The next chapter takes up the life expectancy example again and asks the obvious question: how is machine learning any different from simply writing a program that solves the same prediction problem?