can any one tell me some thing how to use the lasso function
2 views (last 30 days)
Show older comments
can any tell me some thing about the lasso function ..
0 Comments
Answers (2)
Sanket Mishra
on 10 Jul 2014
Edited: Sanket Mishra
on 10 Jul 2014
Lasso function provides regularized least-squares regression using lasso or elastic net algorithms. You can use below syntax to execute lasso function:
B = lasso(X,Y)
[B,FitInfo] = lasso(X,Y)
[B,FitInfo] = lasso(X,Y,Name,Value)
2 Comments
chocho
on 10 Apr 2017
@ Sanket Mishra I have tried this function before and is worked well, however, the PredictorNames character vector i found is empty and instead of having the predictor names existed in x ????
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!