Skip to content

Unstable (wrong?) fits when using L2 norm + L1 norm of part of parameters #2132

Closed Answered by SteveDiamond
tobiscode asked this question in Q&A
Discussion options

You must be logged in to vote

You can still do the weighted least-squares with an L1 norm:

objective = cp.quad_form(m, G.T @ W @ G) - d.T @ W @ G @ m + cp.norm1(cp.multiply(lambd, m[reg_indices]))

(I may have multiplied the squared error incorrectly.) This would have the smaller dimensionality you want when you solve the optimization problem. I don't think there is a substantial advantage to solving norm2 + norm1 over quadratic penalty + norm1. The general behavior should be similar.

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@tobiscode
Comment options

@SteveDiamond
Comment options

@tobiscode
Comment options

@SteveDiamond
Comment options

Answer selected by tobiscode
@tobiscode
Comment options

@SteveDiamond
Comment options

@tobiscode
Comment options

@SteveDiamond
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants