Question: 2. (10 points) In this question, you may use Python (with only numpy library) to solve the matrix equation. Consider the following data points a).

2. (10 points) In this question, you may use Python (with only numpy library) to solve the matrix equation. Consider the following data points a). Fit a linear model y=0+1x1+2x2 to this dataset when the loss is RSS =Xy2. You should report the best fit function and the RSS cost value. b). Fit a linear function to this dataset when the loss is the Ridge Loss J()=Xy2+(12+22) with =1 and with =10. You should report the best fit function and the RSS cost value. Plot the data and model. (Hint: Do not put penalty on 0. You don't have to standardize the data, but you need to centralize the data. )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
