Why is lasso() not consistent with the answer of the normal equation?

1 vue (au cours des 30 derniers jours)
SC
SC le 9 Fév 2019
Modifié(e) : SC le 9 Fév 2019
Hi,
I have below. Why is B1 different to B2?
X=[1;1]
y=[2;2]
B1=inv(X'*X)*X'*y
B2=lasso(X,y,'lambda',0)
Thanks!

Réponses (0)

Catégories

En savoir plus sur Problem-Based Optimization Setup dans Help Center et File Exchange

Produits


Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by