← All Sessions

Supervised Learning
Through Building

AI Trade School - Session 2A

How Machines Learn From Examples

πŸ“š Week 1 Recap

Session 1A

AI Fundamentals & Prompting

Session 1B

Data Quality Matters

Today: We BUILD ML Models

πŸ”§ Traditional Programming

Programmer Writes Rules β†’ Computer Follows Rules β†’ Output

Example: Email Spam Filter (Old Way)

IF email contains "FREE MONEY" β†’ Mark as spam
IF email contains "CLICK HERE NOW" β†’ Mark as spam
IF sender is unknown β†’ Mark as spam

Problem: You need rules for EVERY scenario. Spammers evolve faster than you can code.

πŸ€– Machine Learning: The New Way

Show Computer Examples β†’ Computer Finds Patterns β†’ Computer Predicts

Example: Email Spam Filter (ML Way)

STEP 1: Feed 1 million emails (500K spam, 500K legit)
STEP 2: Machine learns patterns that predict spam
STEP 3: System predicts on NEW emails

Result: Gmail catches 99.9% of spam. Machine adapts as it sees more examples.

πŸ“– Supervised Learning

Learning With a Teacher

Your labeled data is the teacher

Features (inputs) + Labels (answers) = Training Data

🎯 Classification: Predicting Categories

Email

Spam or Not Spam?

Customer

Will Churn or Stay?

Loan

Approve or Deny?

Medical

Disease Present?

Answer is a CATEGORY/LABEL, not a number

πŸ“Š Regression: Predicting Numbers

House

What will it sell for?

Customer

How much will they spend?

Stock

What will price be?

Demand

How many units sell?

Answer is a SPECIFIC NUMBER

🌍 Real Business Examples

Netflix Recommendations (Classification)

Question: Will this user watch this show? Features: Watch history, ratings, time of day

Amazon Pricing (Regression)

Question: What should we price this item at? Features: Cost, demand, competitor prices

Tesla Autopilot (Classification)

Question: What is this object? (Pedestrian, car, sign?) Features: Camera images, distance, speed

πŸ”„ How Models Learn: 6 Steps

1
Upload
Your Data
2
Split
70/30 Train/Test
3
Train
Learn Patterns
4
Test
Check Accuracy
5
Analyze
Feature Importance
6
Predict
New Data

πŸ“ˆ Live Demo Results

Training Accuracy

83%

Test Accuracy

93%

Model learned: 93% of new customers correctly predicted!

⭐ Feature Importance: What Matters Most

For Customer Purchase Prediction:

1. Previous Purchases β€” Most important (past behavior predicts future)

2. Time on Website β€” Second most important (engagement signals intent)

3. Income β€” Third most important (ability to buy)

4. Age β€” Least important (not a strong predictor)

This tells business strategy: Focus on engagement and repeat behavior!

Phase 2: BUILD

Train Two Real ML Models

You're Using Real Cloud ML Platforms

90 Minutes

2 Models

🎯 Exercise 1: Customer Churn Prediction

Type: Classification

Dataset: 2,000 telecom customers

Business Problem

Which customers will cancel service next month?

Your Goal

Train a model, document accuracy, identify top factors causing churn

⏱ 45 Minutes

🎯 Exercise 2: Car Price Prediction

Type: Regression

Dataset: 5,000 used cars

Business Problem

What should this used car sell for? (Fair market price)

Your Goal

Train a model, document RΒ² score, test prediction on sample car

⏱ 45 Minutes

πŸ“Š Understanding Model Quality

Accuracy (Classification)

% of correct predictions

Target: 75%+

RΒ² Score (Regression)

How much variation model explains (0-1)

Target: 0.70+

Higher is always better. Real-world models often have imperfect accuracy.

⏰ BUILD Phase Timeline

Minutes 0-10

Setup & Log In

Minutes 10-45

Exercise 1: Churn Model

Minutes 45-90

Exercise 2: Price Model

Ask Questions

I'm here to help anytime

πŸ“ Your Deliverables

Churn Model Report

FirstName_LastName_ChurnModel.pdf

Price Model Report

FirstName_LastName_PriceModel.pdf

These are your portfolio pieces. Add to LinkedIn. Show employers.

Phase 3: SHOWCASE

Student Presentations

30 Minutes

Share What You Built

πŸ† What You Built Today

Real Models

Same tools Netflix & Amazon use

Business Insights

You identified what drives outcomes

Portfolio Pieces

For your resume & LinkedIn

Real Skills

Not theoreticalβ€”you did it

βœ… Today's Success Looks Like

βœ“ You trained a churn prediction model (Classification) with 75%+ accuracy

βœ“ You trained a price prediction model (Regression) with RΒ² 0.70+

βœ“ You identified top features that predict outcomes

βœ“ You tested a prediction on new data

βœ“ You understand the difference between Classification & Regression

πŸ“š Session 2B: Unsupervised Learning

Finding Patterns Without Labels

You'll build: Customer Segmentation & Anomaly Detection

Same Process. More Advanced.

You Just Built ML Models

Real. Production-Quality. Models.

Netflix recommendation system? Same technique.

Zillow price estimates? Same technique.

Amazon demand forecasting? Same technique.

Submit Your Work

Upload both PDFs to LMS by end of day

This is your proof of skill

Questions? Office hours available.

1 / 23
Title
Week 1 Recap
Traditional Code
ML Approach
Supervised Learning
Classification
Regression
Real Examples
Training Process
Demo Results
Feature Importance
BUILD Phase Intro
Exercise 1: Churn
Exercise 2: Price
Accuracy Metrics
BUILD Timeline
Deliverables
SHOWCASE Intro
What You Built
Success Metrics
Session 2B Preview
Final Message
Call to Action
β†’ / Space next
← back
F fullscreen