Question: [ Linear Regression ] ( 8 pts ) Suppose we have a weight vector w = [ w 1 , w 2 ] T with
Linear Regression pts
Suppose we have a weight vector with input vectors and
Let us initialize all the weights to be Also,
suppose we have examples in our dataset:
: Work out on paper the process of training an regularized
linear regression model with batch gradient descent learning rate on the above
dataset for two epochs steps
a pts What is the value of the loss function at the beginning?
b pts What is the final state of the trained weight vector after steps, and the
corresponding value of the loss function? Hint: derive the partial derivative of
the loss function with respect to weights, and calculate their values after each
step
c pts Derive the formula of the closedform solution for ridge regression. Hint:
first write out the loss function in matrix form
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
