Regression Model Flashcards
Training set
Data used to train the model
x =
“input” variable feature
y =
“output” or “target” variable
m =
number og training examples
m =
number of training examples
f
the model
prediction
estimated y
linear function
f(x) = wx + b
Univariate linear regression
One variable linear regression
Cost function
Tells us how well the model is doing
Cost function
Tells us how well the model is doing
Goal of cost function
Minimize J(w,b)
Gradient descent
Cost function
Start up and go down to try to get J to be smaller J(w,b)
Important about gradient descent implimentation
Simultaneously update w and b
If learning rate is to small
You take very small baby steps, so you do decrease w and b but,
Gradient descent may be slow.