MACHINE LEARNING • LESSON 1 • REVIEW

What Did We Learn?

Before moving to the next lesson, let's put everything we learned together into one simple picture.

Can you explain Machine Learning in your own words?

If you can explain how examples are used to learn a relationship and how that relationship is used to make predictions, you understand the core idea of this lesson.

01

What Is Machine Learning?

Machine Learning is a way of building systems that learn useful patterns or relationships from data and use what they learned to make predictions or decisions.

SIMPLE DEFINITION Learn from examples → use what was learned to make predictions.
02

Traditional Programming vs Machine Learning

TRADITIONAL PROGRAMMING Rules + Data

The programmer explicitly writes the rules used to produce the result.

MACHINE LEARNING Data + Examples

An algorithm learns useful patterns from examples and uses them to produce results.

03

Our House Price Problem

We wanted to estimate the price of a house based on its size.

KNOWN EXAMPLES House Size + Price
LEARN Relationship
NEW INPUT House Size
OUTPUT Predicted Price
04

Training Data

We started with examples that already had known answers.

INPUT 800 sq ft
ANSWER $300,000

We had several such examples. These examples provided the information used to calculate our simple relationship.

05

What Is a Model?

A model is the learned representation of a relationship or pattern that can be used to produce predictions or decisions.

THINK OF IT THIS WAY Data → Learning Process → Model

The model is what we use later when we want to make predictions for new inputs.

06

Training vs Prediction

TRAINING Learn from existing data

The system uses examples to learn a useful relationship or pattern.

PREDICTION Use what was learned

The trained model receives new input and produces an output.

07

What Happens When Data Changes?

We experimented with changing the training data. This can change what the model learns and therefore can change future predictions.

CHANGE INPUT Prediction can change
CHANGE TRAINING DATA Learned relationship can change
08

A Model Can Only Use the Information It Has

Our simple model only knew about house size.

It did not know the location, number of bedrooms, age of the house, or any other information.

No location data → no location-based prediction.

This idea becomes extremely important when we learn about features later in the course.

09

What Did We Do With Python?

Python
sizes = [800, 1000, 1200, 1500]

prices = [300000, 400000, 500000, 650000]

price_per_sqft = sum(prices) / sum(sizes)

new_house_size = 1400

predicted_price = new_house_size * price_per_sqft

print("Predicted price:", predicted_price)

The code demonstrated the basic workflow:

Training Data
Learn Relationship
New Input
Prediction
THE BIG PICTURE

Machine Learning in One Diagram

01 Data

Examples

02 Learning

Find patterns

03 Model

Learned relationship

04 New Input

Unseen example

05 Prediction

Output

QUICK CHECK

Can You Answer These?

1. What does Machine Learning learn from?

Data and examples.

2. What is a model?

A learned representation of useful patterns or relationships that can be used for predictions or decisions.

3. What is training?

The process of learning from training data.

4. What is prediction?

Using the trained model with new input to produce an output.

5. What happens when training data changes?

What the model learns can change, which can affect future predictions.

LESSON 1 IN ONE SENTENCE

Machine Learning learns useful patterns from data and uses what it learned to make predictions or decisions.

Everything we built in this lesson was designed to make this single idea concrete.

NEXT TOPIC

Common Beginner Confusions

Before finishing Lesson 1, let's clear up the mistakes and misunderstandings beginners commonly have about Machine Learning.