Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 2 : Sub - gradient Method Consider a least squares problem with l 1 regularization: m i n x [ f ( x )

Problem 2: Sub-gradient Method
Consider a least squares problem with l1 regularization:
minx[f(x)=12||Ax-b||22+||x||1]
This problem is often called LASSO (least absolute shrinkage and selection operator) and is known to induce {lem sparse} solutions with few
nonzero elements in x, which can have advantages in terms of computation and interpretability. This problem is nonsmooth due to the
regularization term. It is also not strongly convex when A has more columns than rows. We (i.e., you) will solve this problem using several
different algorithms in this class. We start with what we have seen thus far: the subgradient method.
The dataset represented in the matrices provided in the numpy binary files A.npy and b.npy are from a diabetes dataset (scikit-
learn.org/stable/modules/generated/sklearn.datasets.load_diabetes.html) with 10 features that has been corrupted with an additional 90 noisy
features. Thus a sparse solution should be very effective. Below you will find some skeleton code to help with loading the data, running the
algorithm and plotting the results. Don't use stock optimization code, you should develop the core part of this assignment yourself.
Minimize f(x) using 104 iterations of the subgradient method starting with t=0 and x0=0.
Part (A)
Use a decreasing step size of t=ct with values for c that (roughly) optimize the empirical performance. Separately record the (unsquared)
error ||Axt-b|| and the regularization term ||x||1.
Part (B)
Now use a more slowly decreasing step size of t=ct+12 with values for c that (roughly) optimize the empirical performance. Separately
record the (unsquared) error ||Axt-b|| and the regularization term ||x||1.
Part (C)
Now try to find the best fixed step size. Plot the results and compare to the decreasing step size you see above.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

using signal flow graph

Answered: 1 week ago

Question

Demonstrate three aspects of assessing group performance?

Answered: 1 week ago