Solving a least squares rather than a quadratic program? #223
-
Is it possible to solve a least squares rather than a quadratic program? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
-
Yes, there is also a See also the post Conversion from least squares to quadratic programming for details on how this is done, and inspiration if you need to convert a similar problem. |
Beta Was this translation helpful? Give feedback.
-
How about ridge regression or LASSO, i.e., having an additional penalty term in the objective function regarding the magnitude of the weights? |
Beta Was this translation helpful? Give feedback.
-
Another related question: In order to optimize the intercept term (i.e.,
Do you see any issues with this approach or would you achieve the same in another way? |
Beta Was this translation helpful? Give feedback.
Yes, there is also a
solve_ls
function.See also the post Conversion from least squares to quadratic programming for details on how this is done, and inspiration if you need to convert a similar problem.