Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 370 Bytes

File metadata and controls

15 lines (11 loc) · 370 Bytes

eigen-ridge

L2-regularized (ridge) linear regression without intercept in c++11 as Eigen3 template function. Uses singular value decomposition, works with both tall and wide design matrices.

This is free and unencumbered software released into the public domain.

#include "eigen_ridge.hpp"

MatrixXd A;
VectorXd y;
auto x = ridge(A, y, alpha);