โšกFREE Live Master Session: Code Your AI Companion for Kids

    Register for Free โ†’
    AI & ML WorksheetsTeach an AI with Examples
    Free Interactive Worksheet ยท Beginner

    Teach an AI with ExamplesSupervised Learning & Data Quality

    Discover how AI learns from labeled examples, experiment with balanced vs unbalanced data, and train your own simulated AI classifier!

    ๐Ÿ‘‹

    How AI Learns

    Just like a child learns to recognize animals from picture books, an AI learns from thousands of labeled training examples.

    Training Example

    A single input data point shown to the AI (e.g. one email message).

    Target Label

    The ground truth answer paired with the example (e.g. 'SPAM').

    Training Set

    The complete collection of labeled example pairs used to train the model.

    Analogy: If you show a student 500 cat photos labeled 'CAT' and 500 dog photos labeled 'DOG', they quickly learn the difference. AI algorithms learn statistical patterns from datasets in the exact same way!

    ๐Ÿท๏ธ

    Looking at Labeled Data

    Here are examples of labeled training data for an email spam filter. Notice the patterns:

    "CONGRATULATIONS! You WON $1,000,000!!! CLICK NOW!!!"Label: SPAM
    "Hi, can we schedule a meeting tomorrow at 3pm?"Label: NOT SPAM
    "FREE FREE FREE! Lose 10kg in 3 days! Buy NOW!"Label: SPAM
    "Here is the document you requested. Best regards, Sarah"Label: NOT SPAM

    The AI spots pattern signals: repeated exclamation points (!!!), ALL-CAPS words (FREE, WIN, NOW), and urgent calls to action.

    โญ

    Data Quality Matters

    More data usually makes a smarter AI, but the quality and balance of data matter just as much!

    1

    More is Better

    10,000 examples are far better than 10 examples. AI needs enough data to find real patterns.

    2

    Balanced is Better

    Equal SPAM and NOT SPAM examples prevent the AI from becoming biased toward one answer.

    3

    Diverse is Better

    Cover different types of messages so the AI generalizes well to unseen real-world data.

    ๐ŸŽฎ

    Playground: Train Your Spam Filter

    Experience DATA โ†’ TRAIN โ†’ MODEL โ†’ TEST โ†’ PREDICTION. Add your own training examples, try the Data Quality experiment, and test the simulated AI!

    ๐Ÿ’ก Note: This is a beginner-friendly simulation of ML pattern recognition.

    ๐Ÿงช Data Quality Experiment:

    Training Dataset (4 Total Examples)

    SPAM: 2NOT SPAM: 2
    "Win a free prize!"
    SPAM
    "Meeting at 5 PM"
    NOT SPAM
    "Claim your reward!"
    SPAM
    "See you tomorrow"
    NOT SPAM

    โž• Teach the AI a New Example ("Change the Training Data"):

    Model Summary: 4 examples (2 Spam / 2 Not Spam)

    Test the AI (Predict New Message)

    TEST MESSAGE"You won a free gift!"
    PREDICTION๐Ÿšจ SPAM
    CONFIDENCE92%

    ๐Ÿ’ก Explanation: Detected high-risk spam keywords: 'won', 'free', 'gift'.

    ๐Ÿ’ช

    Interactive Exercises

    Total XP Earned: 0 / 90 XP
    0 / 4 Completed
    1

    Exercise 1: Label These Examples

    +15 XP ยท Beginner
    2

    Exercise 2: Good Training Data

    +20 XP ยท Beginner
    3

    Exercise 3: Data Quality Problem

    +25 XP ยท Intermediate
    4

    Exercise 4: Too Little Data

    +30 XP ยท Intermediate
    ๐Ÿ“

    Knowledge Check

    Ready to test your knowledge?

    Answer 10 multiple-choice questions to test your understanding of labeled data and AI training!

    ๐Ÿš€ Ready for live coding?

    Build Real Machine Learning Models with Tutors

    Take the next step! Join our live Intro to Machine Learning Course and write real Python ML code with expert 1-on-1 guidance.