Skip to main content

Supervised Learning Fundamentals

Learn how supervised learning uses labelled examples, a model and an objective to make predictions about new inputs.

By Hidden AI Concepts10 min read
Tags:TrainingData
Conceptual representation of supervised learning with labelled examples and predictions

Supervised learning is one documented way to build a model from examples. Goodfellow, Bengio, and Courville describe learning problems through experience, a task, and a measure of performance; supervised learning is one case within that broader framing.[1] This article explains that case with a deliberately simple teaching example, and keeps its limits visible.

What Makes Learning Supervised?

In the supervised workflow described by scikit-learn's guide, examples have inputs and target labels: an estimator is fitted on training data and then used to predict outputs for new inputs.[2] The label is supplied as part of the example; the learning procedure uses it to judge and adjust the model's behavior.

This is one documented workflow, not a universal description of every AI system or learning method. Other settings use different signals, and some software systems do not learn from data at all. The focus here is deliberately narrow so that each part of the process can be distinguished clearly.

Examples, Features and Targets

Consider an original teaching illustration: estimating the travel time for a journey. One example might contain the route length and a traffic measure as inputs, with a recorded travel time as the target. The model receives the inputs and produces a prediction; the target is used only when judging that prediction during fitting.[2]

The inputs are often called features. A feature is one represented value that the model can use; the target is the value the model is being trained to predict. The example does not claim that real routing systems use these particular features, or that recorded times are always reliable targets.

A Model, Parameters and an Objective

A model maps inputs to predictions. In a simple linear model, each input feature can be multiplied by an adjustable weight and combined into a prediction. A parameter is a value inside the model that affects the prediction; the examples supply information used to adjust those values.[1]

A learning procedure also needs a criterion for judging candidate predictions. In this teaching illustration, imagine a cost that assigns a numerical penalty to predictions that differ from their targets. Optimization searches parameter settings that improve that cost on the training examples. This is a simplified account, not a claim about particular formulas used across tasks.

Training and Inference

Scikit-learn's guide demonstrates fitting a pipeline on training data and then calling predict on test inputs.[2] In this article, training means fitting the estimator to examples, and inference means using the fitted estimator to make predictions for new inputs. They are different uses of the same model.

Fitting examples does not by itself show how well a model will work on examples it has not seen. That question belongs to evaluation, and is treated separately in Model Evaluation and Generalization.

Where It Helps and Where It Does Not

Supervised learning fits tasks where labelled examples are available and the target is well defined. It is less straightforward when labels are missing, expensive, or ambiguous, and it does not by itself establish that a prediction is appropriate for a consequential decision. A measured objective can be narrow, while the human purpose for a system is wider.

These are scope notes, not a ranking of learning approaches. The cited sources describe particular workflows and examples; they do not establish universal rules for every model or task.

References

  1. Goodfellow, I., Bengio, Y., & Courville, A. (2016). Deep Learning. MIT Press, Chapter 5, "Machine Learning Basics." Official chapter text.
  2. scikit-learn developers. "Getting Started." scikit-learn 1.8.0 User Guide. Documentation (accessed 2026-11-24).

Continue exploring

Explore the broader topics connected to this article.

Continue with these related articles.

Continue exploring related ideas and concepts.

Continue reading

Continue exploring Hidden AI Concepts.

Recent editorial content

Discover more of the latest editorial content.