paperKB
coga / coga-kb
Help
Sign in

Chunk #18 — 2 Algorithms for the Lasso, Ridge Regression and the Elastic Net — 2.3 Sparse Updates

Source
Regularization Paths for Generalized Linear Models via Coordinate Descent.
Embedded
yes

Text

We are sometimes faced with problems where the N × p feature matrix X is extremely sparse. A leading example is from document classification, where the feature vector uses the so-called “bag-of-words” model. Each document is scored for the presence/absence of each of the words in the entire dictionary under consideration (sometimes counts are used, or some transformation of counts). Since most words are absent, the feature vector for each document is mostly zero, and so the entire matrix is mostly zero. We store such matrices efficiently in sparse column format, where we store only the non-zero entries and the coordinates where they occur.