lasso regression non-positive constraints

조회 수: 4 (최근 30일)
Rini
Rini 2014년 11월 6일
편집: John D'Errico 2018년 3월 31일
Hello, I read about the l1_ls package http://stanford.edu/~boyd/l1_ls/ to solve large sparse problems. It has another version to solve lasso with non-negative constraints. I went through the code of both l1_ls and l1_ls_nonneg. But I am not sure what changes to make in the code to implement lasso with non-positive constraints. Can someone please help me?
Thanks so much!
  댓글 수: 1
Sandipan
Sandipan 2018년 3월 31일
Could you solve the problem??? I have a solution using Bayesian method...

댓글을 달려면 로그인하십시오.

답변 (1개)

John D'Errico
John D'Errico 2018년 3월 31일
편집: John D'Errico 2018년 3월 31일
Suppose you were to just negate your dependent variable?
Solve now, using non-negative solver. You already know how to use that.
Finally, negate the coefficients.

카테고리

Help CenterFile Exchange에서 Linear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by