
ML Week 5
Presentation
•
Computers
•
Professional Development
•
Medium
Deep Nets
Used 2+ times
FREE Resource
10 Slides • 5 Questions
1
ML Week 5
Linear Regression with Multiple Variables
2
Poll
Attendance
Present
Absent
3
Overview of training an ML model
4
1. Initialisation
Initialise the parameters (thetas), so that you have a hypothesis
5
2. Calculate cost
Calculate (plot) the cost function of the hypothesis
a. gives an indication of how good or how bad the hypothesis is
b. helps gradient descent take the next step.
6
2. Calculate cost
Calculate (plot) the cost function of the hypothesis
a. gives an indication of how good or how bad the hypothesis is
b. helps gradient descent take the next step.
7
3. Gradient descent
Take one step of gradient descent towards lowering the cost, which will give you new updated parameters.
8
3. Gradient descent
Take one step of gradient descent towards lowering the cost, which will give you new updated parameters.
9
4. Update parameters
Update the hypothesis with the new parameters
10
4. Repeat steps 2 - 4
1. Calculate cost for the updated hypothesis
2. Take one step gradient descent
3. Update parameters to create a new hypothesis
11
Linear Regression with Multiple Variables
12
Multiple Choice
In the training set shown in the image, what is x1(4) ?
The size (in sq. feet) of the 1st home in the training set
The age (in years) of the 1st home in the training set
The size (in sq. feet) of the 4th home in the training set
The age (in years) of the 4th home in the training set
13
Multiple Choice
Suppose you are using a learning algorithm to estimate the price of houses in a city. You want one of your features xi to capture the age of the house. In your training set, all of your houses have an age between 30 and 50 years, with an average age of 38 years. Which of the following would you use as features, assuming you use feature scaling and mean normalization?
xi=age of house
xi=50age of house
xi=50age of house −38
xi=20age of house −38
14
Multiple Choice
Suppose a friend ran gradient descent three times, with α=0.01, α=0.1, and α=1, and got the following three plots, labeled A, B, and C (in the image) :
A is α=0.01, B is α=0.1, C is α=1.
A is α=0.1, B is α=0.01, C is α=1.
A is α=1, B is α=0.01, C is α=0.1.
A is α=1, B is α=0.1, C is α=0.01.
15
Multiple Choice
Suppose you want to predict a house's price as a function of its size. Your model is hθ(x)=θ0+θ1(size)+θ2(size)
Suppose size ranges from 1 to 1000 (sq. feet). You will implement this by fitting a model hθ(x)=θ0+θ1x1+θ2 x2
Finally, suppose you want to use feature scaling (without mean normalization). Which of the following choices for x1 and x2 should you use? (Note: 1000≈32 )
x1=size, x2=32(size)
x1=32(size), x2=(size)
x1=1000size, x2=32(size)
x1=32size, x2=(size)
ML Week 5
Linear Regression with Multiple Variables
Show answer
Auto Play
Slide 1 / 15
SLIDE
Similar Resources on Wayground
12 questions
untitled
Presentation
•
KG - University
15 questions
Y1 ICT Topic: Inserting Online Pictures in the Spreadsheet
Presentation
•
KG
13 questions
Adjectives
Presentation
•
Professional Development
11 questions
Myths of Poverty
Presentation
•
Professional Development
10 questions
Brain attack
Presentation
•
Professional Development
10 questions
Problem Solving
Presentation
•
Professional Development
10 questions
Grace Hopper
Presentation
•
Professional Development
10 questions
The alphabet and numbers
Presentation
•
KG
Popular Resources on Wayground
6 questions
PRIDE Always and Everywhere
Presentation
•
12th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
26 questions
KOR Review Kahoot Questions
Quiz
•
8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
12 questions
Unit Zero lesson 2 cafeteria
Presentation
•
9th - 12th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
10 questions
Riddles Riddles fun Riddles
Quiz
•
6th - 12th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Soup, Salad, or Sandwich?
Quiz
•
1st Grade - Professio...
20 questions
Employability Skills
Quiz
•
Professional Development
9 questions
How to Email your Teacher
Quiz
•
Professional Development
25 questions
2023 Pop Culture Trivia
Quiz
•
Professional Development
20 questions
Cinema Camera Angles
Quiz
•
9th Grade - Professio...
20 questions
Sports trivia
Quiz
•
Professional Development
21 questions
Shop Safety
Quiz
•
Professional Development