I need Lasso/L1 constrained Regression Library in C. AFAIK, NAG does not support it. R has a package to do it but I need to do it in C. Any idea?
Asked
Active
Viewed 1,711 times
8
-
What libraries can you use? I wrote my own C version, which is really not that hard TBH. You can use the CRAN version as a prototype – Foo Bah Aug 14 '11 at 02:48
-
thanks. I used my own. It worked well. – Pratik Poddar Jul 30 '12 at 13:35
3 Answers
2
Coding l1 stuff yourself should not be too bad. Both ftp://ftp.math.ucla.edu/pub/camreport/cam08-37.pdf and ftp://ftp.math.ucla.edu/pub/camreport/cam08-29.pdf are easy to implement.
If you can use C++ this library might already have what you want: http://www.di.ens.fr/willow/SPAMS/index.html

dranxo
- 3,348
- 4
- 35
- 48
1
Thanks. I wrote my own C function and it worked well.

Pratik Poddar
- 1,353
- 3
- 18
- 36
-
-
@dwbrito Here's the implentation in C, in bbr package. All code & executables are hosted at Google Code project page. Main page http://www.bayesianregression.org/ and project page http://code.google.com/p/bbrbmr/downloads/list – ekta Jan 16 '14 at 18:50