question on the lasso example in matlab documentation
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
cgo
am 13 Jul. 2018
Beantwortet: Alan Weiss
am 13 Jul. 2018
In the Lasso documentation page here: https://www.mathworks.com/help/stats/lasso.html
Construct the default lasso fit.
B = lasso(X,y);
Find the coefficient vector for the 25th Lambda value in B.
B(:,25)
Is there any particular reason why the 25th lambda value in B was chosen? I don't understand this part. Thanks
0 Kommentare
Akzeptierte Antwort
Alan Weiss
am 13 Jul. 2018
The example is just intended to show how to use the function. I wanted to show what the output looked like, that the coefficient corresponding to a particular lambda value is a vector. I chose 25 arbitrarily. Sorry that it confused you.
Alan Weiss
MATLAB mathematical toolbox documentation
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Get Started with Optimization Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!