-
We Code the least angle regression solution (LARS) path by hand for an example(p=5), then we compute the solution of LARS for a dataset. Finally we do the same for LASSO path and compare it with LARS.
-
LARS and LASSO paths can only differ when a coefficient’s value crosses zero. In other words, When coefficient’s value do not crosses zero. LARS and LASSO paths will be exactly same. Consequently , we make plot of the coefficients for both LASSO and LARS to compare the LARS and LASSO path.
-
R Libraries used lars and glmnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Arek-KesizAbnousi/LASSO-vs-LeastAngleRegression
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Code of the least angle regression solution path by hand for an example( p=5). Then we compute the solution path for a dataset and compare it with the LASSO path.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published