Let’s build your next big idea.Custom software. Built by our team.Hire us

PATH 1 / START WITH THE FOUNDATIONS

How machine learning learns

Understand examples, training, prediction and the difference between learning and using a model.

Lesson 3 of 169 min · reading & practiceBeginner friendly

What you’ll learn

  • Explain training versus inference
  • Recognize supervised and unsupervised learning
  • Connect an example dataset to a prediction

Examples shape a model

In supervised learning, examples include a target such as a category or a number. Training adjusts a model so its outputs better match those targets according to a chosen objective. Unsupervised methods look for structure without the same labelled target. Reinforcement learning uses feedback associated with actions and outcomes. These are useful families of methods, not a checklist that every AI product implements.

Using a model is a separate stage

Inference means applying a trained model to an input. Asking a chatbot a question usually runs inference; it does not necessarily retrain the underlying model. Product settings may separately control stored history, retrieval or later use of data. Do not assume that a model permanently learns your instruction simply because it responded to it once.

A small model you can inspect

The prediction lab below counts words that follow a phrase in a tiny editable set of sentences. Adding examples changes the counts. This is a transparent frequency model, not a neural network or a real chatbot. Its limitations are the lesson: with narrow examples, possible outputs stay narrow. There is no hidden world knowledge behind the display and no external AI service is called.

PUT IT INTO PRACTICE

Your small experiment

In the lab, add two sentences beginning with “we grow”. Watch the continuation counts change. Then try a phrase absent from every example.

TRY IT · NO AI CALLS

A tiny prediction model

Everything here runs in your browser. Use fictional examples. This exercise does not send data to a model, generate paid output or execute your plan.

tomatoes2 examples · 67%
flowers1 example · 33%
These are exact continuation frequencies in your examples, not a real LLM or a calibrated confidence score.
TAKE THIS WITH YOU

Training changes a model; inference applies it. The examples and objective strongly influence what it can do.

CHECK YOUR UNDERSTANDING

Make the idea yours.

Choose an answer for every question. You can review explanations and try again.

1. Applying an already trained model is called…
2. A tiny dataset covers only garden messages. What is a sensible concern?
Answer both questions to check your understanding.Learning checks are for practice. This is not an accredited qualification or professional certification.

Sources & further reading

Use these references to check the ideas and explore further. Examples and practice questions are original course material.

Reviewed November 16, 2026. General education, not professional advice or an accredited qualification.
How machine learning learns | AI Learning Center | Vendovo