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

    Register for Free โ†’
    AI & ML WorksheetsFeatures & Labels
    Free Interactive Worksheet ยท Beginner

    Features & LabelsUnderstanding AI Inputs & Outputs

    Learn how machine learning models make predictions by connecting measurable input properties (Features) to target answer outcomes (Labels).

    ๐Ÿ‘‹

    Features & Labels

    What goes in and what comes out?

    To train a Machine Learning model, we break data into two core components: Features (the measurable inputs) and Labels (the target output answers).

    Fruit Ripeness Analogy: Imagine predicting if a banana is ready to eat. The FEATURES are its Color (Green/Yellow), Size (Small/Large), and Firmness (Hard/Soft). The target LABEL is 'Not Ripe' or 'Ripe'!

    ๐ŸŽฏ

    Quick Activity: Identify Features vs Label

    Classify each banana property below as a Feature or a Label:

    Color: Green
    Size: Small
    Firmness: Hard
    Fruit Status: Not Ripe
    ๐Ÿ”

    Features Explained

    Measurable Input Properties

    Features are the quantifiable characteristics the AI scans to make predictions. Look at this house price dataset table:

    Feature: Size (mยฒ)Feature: BedroomsFeature: LocationTarget Label: House Price
    120 mยฒ3 BedroomsCity Centerยฃ350,000
    85 mยฒ2 BedroomsSuburbsยฃ210,000

    ๐Ÿ’ก Interactive Activity: Choose the Useful Features for Predicting House Prices

    Click each feature to toggle whether it helps predict house prices:

    ๐Ÿท๏ธ

    Labels Explained

    Target Output Answers

    Labels are the target answers we want the AI to predict. Labels come in 3 main types:

    Binary Label

    Exactly 2 choices (e.g. Spam or Not Spam, Yes or No).

    Multi-class Label

    3 or more categories (e.g. Cat vs Dog vs Bird).

    Continuous Label

    A numerical value (e.g. House price = ยฃ250,000).

    ๐ŸŽฏ Interactive Activity: Match the Task to its Label Type

    Select the correct label classification for each task below:

    "Is this email spam?"

    "Which animal is in this photo?"

    "What will this house cost?"

    ๐ŸŽฎ

    Playground: Feature Picker

    Predicting Exam Success

    Toggle features on or off to see how selecting relevant vs irrelevant input variables affects the AI model's predictions!

    Select Features to Include in the Model

    SELECTED FEATURES2 Features
    AI PREDICTIONLikely to PASS โœ…
    CONFIDENCE82%

    Feature Impact Summary:

    โœ…Study Hours: Study time directly improves knowledge!

    โœ…Attendance %: Attending class helps understand topics!

    ๐Ÿ’ช

    Interactive Exercises

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

    Exercise 1: Feature or Label? (Spam Filter)

    +15 XP ยท Beginner
    2

    Exercise 2: Feature or Label? (Dog Breeds)

    +20 XP ยท Beginner
    3

    Exercise 3: Label Type Classification

    +25 XP ยท Intermediate
    4

    Exercise 4: Feature Selection

    +30 XP ยท Intermediate
    ๐Ÿง 

    Knowledge Check

    Test your understanding

    Ready to test your knowledge?

    Answer 10 multiple-choice questions to test your understanding of features, labels, and classification!

    ๐Ÿš€ 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.