How to use lasso regularisation function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Why does Matlab's lasso regularisation function not return the same estimates as least-squares when lambda is set to zero?
1 Kommentar
Madhav Rajan
am 22 Jul. 2015
I understand that you are expecting to see equivalent estimates when calling the "least squares" function and the "lasso" function with the regularization value or lambda set to 0.
Assuming that you are using MATLAB's Least square functions in the optimization toolbox, if you refer the documentation of the functions "lsqlin", "lsqnonneg" and "lasso", you will find that the "lsqlin" and "lsqnonneg" functions use a different least square formula when compared to the "lasso" function.
You can refer the following link for more information on the "lsqlin" function:
You can refer the following link for more information on the "lsqnonneg" function:
You can refer the following link for more information on the "lasso" function:
The user community might be able to help you better if you could provide the exact "lasso regularization" function and the "least square" function that you are trying to compare. It would also be helpful if you could also provide the data that you are using to compare the above functions.
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!