100% Guaranteed Results


Exercises – Solved
$ 24.99
Category:

Description

5/5 – (1 vote)

Model selection Performance
Best param log2 πœ† Mean of MSE Std of MSE MSE on train MSE on test
Least square – – –
π’˜
(show your estimated w)
𝑙1(𝑀) = 𝑙2(𝑀) = Spars=
LASSO
π’˜ (show your estimated w)
𝑙1(𝑀) = 𝑙2(𝑀) = Spars=
Ridge
π’˜ (show your estimated w)
𝑙1(𝑀) = 𝑙2(𝑀) = Spars=
Caption for statistics in the table:
β€’ Best param πœ†: the regularization coefficient you choose using cross validation.
β€’ Mean of MSE: the averaged MSE of the 5-fold cross validation process for your chosen πœ†.
β€’ Std of MSE: the standard deviation of MSE of the 5-fold cross validation process for your chosen
πœ†.
β€’ 𝑙1(𝑀): 𝑙1 norm of π’˜
β€’ 𝑙2(𝑀): 𝑙2 norm of π’˜
β€’ Spars: Sparsity, i.e., the number of zeros in the augmented weight vector

(b) Bob learned that 𝑙1 regularization could lead to more sparsity, and he really wants to visualize this. So he collects another bunch of datasets for 2-dimensional (before augmentation) features:
number of training samples (π‘π‘‘π‘Ÿ) number of testing samples
Dataset4 10 1000
Dataset5 30 1000
Dataset6 100 1000
Dataset7 10 1000
Dataset8 30 1000
Dataset9 100 1000
He tries them out and find that the last three datasets (7,8,9) are β€œspecial cases” where the 𝑙1 norm might not provide the intended result.
i. Repeat (a)(i) for all new datasets. (You’ll have 6 tables)
ii. For each dataset, draw the following plot in the 2D space 𝑀2 vs. 𝑀1 with 𝑀0 = your estimated 𝑀0: (1) draw the curve of β€˜MSE = training_MSE of your estimated π’˜ and
β€˜MSE=10+training_MSE of your estimated π’˜; (2) draw the curve for ‖𝑀‖𝑙1 = the 𝑙1 norm of your estimated π’˜. Repeat this plot drawing for ridge regression results, except for (2) draw the curve for ‖𝑀‖𝑙2 = the 𝑙2 norm of your estimated π’˜. (therefore you have 2 plots for each dataset. An example is shown below.)
iii. Based on the statistics and plots, answer the following questions:
1. Observe and explain how the plots relate to sparsity.
2. Can you explain how much effect the regularizer has, from looking at the plots (i.e., how different the regularized performance (MSE) is from the unregularized performance)
3. Observe and explain how Lasso has a different effect with the β€œspecial case” datasets than the other datasets

Hint: please refer to the example code file in the homework folder on how to generate such plots.

Reviews

There are no reviews yet.

Be the first to review “Exercises – Solved”

Your email address will not be published. Required fields are marked *

Related products