FOUNDATIONS · LESSON 3 OF 278

How a Model Learns

See how a model improves by comparing its predictions with the correct answers.

What you will learn

See how a model improves by comparing its predictions with the correct answers.

In simple words

A model starts by making imperfect predictions. Training compares those predictions with the correct answers, calculates the error, and adjusts the model to reduce that error. This process is repeated many times so the model can become better at making predictions on similar new examples.

Visual explanation: Fitting a line to examples

The prediction line moves closer to the example points while the error becomes smaller.

WATCH THE IDEA

Fitting a line to examples

Playing
OutcomeInputExamplesPrediction lineError ↓
  1. 1Observe: Examples
  2. 2Transformation: Prediction line
  3. 3Outcome: Error ↓

Observe: Examples. The prediction line moves closer to the example points while the error becomes smaller.

The diagram highlights Examples, Prediction line, Error ↓. Use the labels to trace the main relationship from left to right.

Real-world example: Demand forecasting

A retailer predicts weekly demand from promotions, seasonality, and store history.

What the team decides: Train on historical outcomes and compare prediction error to a simple baseline forecast.

Risk to avoid: A visually good fit can still fail if the future has a promotion pattern the model never saw.

Technical explanation

A model starts by making imperfect predictions. Training compares those predictions with the correct answers, calculates the error, and adjusts the model to reduce that error. This process is repeated many times so the model can become better at making predictions on similar new examples.

Common misconception

This concept is not a guarantee of a correct outcome by itself. Its value depends on suitable evidence, careful implementation, and evaluation against the real task.

QUICK QUIZ

During training, what is the model mainly trying to reduce?

Practical application

Train on historical outcomes and compare prediction error to a simple baseline forecast.

Key takeaway

A model learns by making predictions, measuring its error, and adjusting to reduce that error.

Next concept

Continue with Training and Inference.

Was this lesson helpful?

Lesson discussion

Comments are reviewed before publication. Keep discussion focused on learning and do not post private information.

Loading discussion…

Your quiz answer and current lesson are saved on this device. Sign in to explore account-backed learning features.

Content version 1 · Last reviewed 2026-10-16