Lasso Regression by Coordinate Descent

hard
Unit 20 · Clustering & Regression0/0 to milestone

Lasso adds an L1 penalty, which drives many weights to exactly zero, giving automatic feature selection:

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Lasso Regression by Coordinate Descent · TechGradify