Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

L1 constrained Regression in C

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?

like image 732
Pratik Poddar Avatar asked Apr 05 '11 13:04

Pratik Poddar


2 Answers

You could embed R in your application.

like image 69
Michael Dillon Avatar answered Sep 19 '22 15:09

Michael Dillon


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

like image 44
dranxo Avatar answered Sep 18 '22 15:09

dranxo