Implement ISTA and verify the lasso rate
CodingAdvanced⏱ 3 hoursHigh-Dim Statisticslassoistaimplementationrate verification
Problem
Implement proximal gradient descent (ISTA) for the lasso and use it to verify empirically that the estimation error scales like .
- Generate sparse with non-zeros and Gaussian design; solve with .
- Sweep at fixed and fit the slope of against .
- Sweep at fixed and check the dependence.
- Compare with ridge regression at its best , for sparse and for dense .
Implement it, then check the implementation against something you can verify independently.
Write it
Solve it here5 tests · Python runs in your browser
⌘/Ctrl + ↵ to run · limit 45s · draft saved in this browser
5 tests will run against your code. The first run downloads the Python runtime — several megabytes, once per browser.
Solution
Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.
Related problems
All problems| Solved | Problem | Field | Type | Difficulty | Time |
|---|---|---|---|---|---|
| Derive the soft-thresholding operator | High-Dim Statistics | Proof | 30 min | ||
| Implement backpropagation from scratch run | Deep Learning | Coding | 3 hours | ||
| Implement kernel ridge regression run | Classical ML | Coding | 1 hour | ||
| Implement multi-head attention from scratch run | Deep Learning | Coding | 3 hours | ||
| Implement power iteration and verify the convergence rate run | Foundations | Coding | 1 hour |