Skip to main content

Module elastic_net

Module elastic_net 

Source
Expand description

Elastic net regression (lasso and ridge combined), by cyclic coordinate descent.

See the book entry Linear regression.

Structs§

ElasticNet
Minimises 1/(2n) ‖y - Xw - b‖² + α (ρ ‖w‖₁ + (1-ρ)/2 ‖w‖²).