Closed patwa67 closed 4 years ago
rpen
is a constant: adding it to the cost function has no influence on the problem.
If you remove it from the last line:
@minimize ls(X*(bhat+c) - y) + lambdal*norm(c,1)
no error is raised and an equivalent optimization problem is solved.
I'm trying to implement what is called the lava regularizer. Theoretically, it would look like:
However, I don't think this leads to an identifiable model. An alternative suggested by the authors (https://projecteuclid.org/euclid.aos/1487667617) is to first perform a Ridge solution, and then use coefficients and the penalty in a Lasso. However, I cannot figure out how to do the last step: