Reproduce double descent
CodingAdvanced⏱ 3 hoursLearning Theorydouble descentsimulationrandom featuresminimum norm
Problem
Reproduce the double-descent risk curve for random-feature regression.
- Generate data from a linear model in , map through random ReLU features, and fit the minimum-norm least-squares solution as varies through .
- Plot test risk against and identify the peak.
- Show that adding ridge regularisation with a well-chosen removes the peak entirely.
- Show that the peak grows with label noise and vanishes as noise .
Implement it, then check the implementation against something you can verify independently.
Write it
Solve it here9 tests · Python runs in your browser
⌘/Ctrl + ↵ to run · limit 90s · draft saved in this browser
9 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 |
|---|---|---|---|---|---|
| Simulate distance contrast run | Classical ML | Coding | 30 min | ||
| The bias–variance decomposition is an identity | Learning Theory | Proof | 15 min | ||
| Balls into bins, with one choice and with two run | AI Systems | Coding | 1 hour | ||
| Cache hit rates under Zipf popularity run | AI Systems | Coding | 1 hour | ||
| Gradient descent finds the minimum-norm interpolator | Learning Theory | Proof | 30 min |