Why is lasso() not consistent with the answer of the normal equation?
조회 수: 2(최근 30일)
표시 이전 댓글
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!
댓글 수: 0
답변(0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!