NumPy allowed · plain Python earns 10 bonus points
θ ← θ − 0.14 · ∂L/∂θ
Fit an L1-regularized sparse linear model using cyclical coordinate descent with soft thresholding.
Implement lasso_coordinate_descent(X, y, alpha, max_iter): iteratively update each coordinate w_j using soft thresholding on partial residuals, inducing feature sparsity.
lasso_coordinate_descent(X: list[list[float]], y: list[float], alpha: float, max_iter: int) -> list[float]