Now let’s study the effect of the L2 norm regularization on the training and testing errors:a. Load Task1C_train.csv and Task1C_test.csv sets.b. [5 marks] For each lambda (the regularization...

Now let’s study the effect of the L2 norm regularization on the training and testing errors:a. Load Task1C_train.csv and Task1C_test.csv sets.b. [5 marks] For each lambda (the regularization parameter) in {0, 0.5, 1.0, …, 10}, build a regression model and compute the training and testing errors, using the provided data sets. While building each model, all parameter settings (initial values, learning rate, etc) are exactly the same, except a lambda value. Set the termination criterion as maximum of 20 x N weight updates (where N is the number of training data). Create a plot of error rates (use different colors for the training and testing errors), where the x-axis is log lambda and y-axis is the error rate. Save your plot in your Jupyter Notebook file for Question 5.c. [5 marks] Based on your plot in the previous part (Part b), what’s the best value for lambda? Discuss lambda, model complexity, and error rates, corresponding to underfitting and overfitting, by6observing your plot. (Include all your answers in your Jupyter Notebook file.)

May 24, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here