Borrar filtros
Borrar filtros

lasso regression non-positive constraints

8 visualizaciones (últimos 30 días)
Rini
Rini el 6 de Nov. de 2014
Editada: John D'Errico el 31 de Mzo. de 2018
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 comentario
Sandipan
Sandipan el 31 de Mzo. de 2018
Could you solve the problem??? I have a solution using Bayesian method...

Iniciar sesión para comentar.

Respuestas (1)

John D'Errico
John D'Errico el 31 de Mzo. de 2018
Editada: John D'Errico el 31 de Mzo. de 2018
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.

Categorías

Más información sobre Numerical Integration and Differential Equations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by