Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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!

Risposte (0)

Categorie

Scopri di più su Problem-Based Optimization Setup in Help Center e File Exchange

Prodotti


Release

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by