
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
10 questions
PFC + ZIZO
Presentation
•
Professional Development
10 questions
FPD Polman November
Presentation
•
Professional Development
15 questions
Computers and Devices
Presentation
•
KG - University
8 questions
Prime Minister and Council of Ministers
Presentation
•
Professional Development
12 questions
Fredrick Douglas
Presentation
•
University
11 questions
Present Continuous + Gerund
Presentation
•
Professional Development
11 questions
Teenager 5 Session 24: Pronunciation & Speaking
Presentation
•
KG
12 questions
Living Things
Presentation
•
KG
Popular Resources on Wayground
10 questions
Factors 4th grade
Quiz
•
4th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
Discover more resources for Computers
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...
20 questions
90s Cartoons
Quiz
•
Professional Development
15 questions
Trivia
Quiz
•
Professional Development
10 questions
Imperfect Subjunctive
Quiz
•
12th Grade - Professi...
34 questions
US National Parks
Quiz
•
Professional Development
20 questions
Disney characters
Quiz
•
KG - Professional Dev...
20 questions
car logos
Quiz
•
KG - Professional Dev...
20 questions
Sports trivia
Quiz
•
Professional Development