Ridge regression path computed through the singular value decomposition
Source:R/hr.R
ridge_path.RdComputes \((X^T X + k I_p)^{-1} X^T y = X^T (X X^T + k I_n)^{-1} y\) for
every value in k. The singular value decomposition is computed once,
so each additional value of k costs \(O(p r)\) operations with
\(r = rank(X)\).