Module 4 – How AI Learns
beginner20 XP

Practice Makes Perfect (For AI Too!) šŸ”„

See how AI improves through thousands of repetitions — and how it adjusts its own brain

Practice Makes Perfect šŸ”„

AI Has Tiny Numbers Called "Weights"

Inside every AI are billions of tiny numbers called weights. These weights decide how the AI makes decisions.

At the start of training, these weights are random — the AI is basically guessing!

Code
Start: Weights = [0.3, -0.7, 0.1, 0.9, ...] (random!)
Result: AI guesses wrong most of the time šŸ˜…

After 100 examples: Slightly better
After 10,000 examples: Getting there!
After 1,000,000 examples: Pretty good!
After 100,000,000 examples: Expert level! šŸ†

🐶 Training Like a Puppy

Training AI is EXACTLY like training a dog:

Dog TrainingAI Training
Show treat → dog sits → "Yes! Good dog!"Show photo → AI guesses → "Correct! Adjust weights"
Show treat → dog runs → "No! Try again!"Show photo → AI guesses wrong → "Wrong! Adjust weights"
Repeat 500 timesRepeat 10 million times
Dog reliably sits!AI reliably recognizes!

šŸ“ˆ The Learning Curve

Code
Error rate (% wrong):
100% ──┐
       │ ↓ First few examples
  50% ─┤  ↓↓ Getting better!
       │     ↓↓↓
  20% ─┤        ↓↓
       │           ↓
   5% ─┤              ↓ (Good enough to use!)
   2% ─┤                ↓↓
       │                   ↓ (Expert level)
───────┓──────────────────────────→ More examples

🤯 AlphaGo: The Ultimate Practice Session

AlphaGo beat the world's best Go player in 2016. How did it practice?

  1. First: Learned from 160,000 human games
  2. Then: Played itself 30 million times in a few weeks
  3. Result: Better than any human who has EVER played

Humans play maybe 10,000 games in a lifetime. AlphaGo played 30 MILLION!

That's the power of AI practice: unlimited games, no breaks, no sleep needed!

Quick check

01/3
What are 'weights' in an AI model?