How to use lasso regularisation function

1 次查看(过去 30 天)
Why does Matlab's lasso regularisation function not return the same estimates as least-squares when lambda is set to zero?
  1 个评论
Madhav Rajan
Madhav Rajan 2015-7-22
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.

请先登录,再进行评论。

回答(0 个)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by