AUTA AI Academy crest AUTA AI ACADEMY
Home · Module 1 · Lesson 3
Module 1 · Lesson 3 · Week 1

How Machines Learn: Data, Patterns, Training

The actual mechanics, minus the maths fear

⬇ Study guide PDF

In this lesson you will

  • Explain training, features and labels with a local example
  • Distinguish supervised, unsupervised and reinforcement learning
  • Describe why 'train vs test' splits prevent self-deception

Learning = adjusting guesses until errors shrink

Training a model means starting with random guesses, measuring the error against known answers, and nudging internal numbers to reduce that error - millions of times. Nothing mystical: it is guided trial and error at enormous speed.

Features and labels: a spaza-shop example

Suppose you want to predict which customers will buy bread on Fridays. Features are the inputs you measure: day, payday week, weather, past purchases. The label is the answer: bought or not. Supervised learning learns a mapping from features to labels using examples where the answer is already known.

Three families of learning

Supervised learning learns from labelled examples. Unsupervised learning finds structure with no labels - like grouping customers who buy similar baskets. Reinforcement learning learns from reward and penalty, the way game-playing agents learn. And the reason we hold out a test set: a model must be judged on examples it never saw, otherwise it is memorising, not learning.

Key terms

Training

Iteratively adjusting a model to reduce error on known examples.

Features / Labels

The measured inputs / the known answer being predicted.

Supervised learning

Learning a mapping from labelled examples.

Overfitting

Memorising training data so well that new data fails.

🛠 Hands-on task: Teach a human model

Tools: Notebook

  • Pick a simple prediction, e.g. 'will it rain tomorrow'.
  • List 5 features you would use and the label.
  • Explain in 3 sentences how you would check your rule on new days.
Key takeaways: Before you go, three takeaways from this lesson. One: Explain training, features and labels with a local example. Two: Distinguish supervised, unsupervised and reinforcement learning. Three: Describe why 'train vs test' splits prevent self-deception. And your hands-on task: teach a human model. Pick a simple prediction, e.g. 'will it rain tomorrow'. When it is done, mark the lesson complete on your dashboard, keep the artifact for your portfolio, and step into the next lesson. I will see you there.
← 2. From Turing to Transformers: A 75-Year 4. The AI Family Tree: ML, Deep Learning, →