Subgradient Descent—Lasso Regression
Explore subgradient descent and its application to Lasso regression, a convex but nondifferentiable optimization problem. Understand how subgradients enable gradient-based methods on L1-regularized objectives. Learn to implement this technique with NumPy, analyze its behavior, and visualize optimization paths for feature selection and model prediction.
We'll cover the following...
Gradient descent works well on objective functions that are convex as well as differentiable at all points. However, how does it work in cases where the objective function is not differentiable at one or more points? Let’s understand this with the example of lasso regression.
Lasso regression
Lasso regression or
Assume