DEV Community

bennisAch
bennisAch

Posted on

Linear Regression with Constraints on the target in python

I have a classical linear regression problem (Y=Xw) that I would like to solve with an L2-regularizer model (e.g. Ridge). However, I have a constraint on the target Y > 0 (Y>1 in another case). Would you have any idea about how we can express this in python? Thank you in advance.

Top comments (0)