About linear constraint

why we multiply our label y with plane equation

Hey @ishaan_123, if a point lies on one side of plane say positive hyperplane, than the value of w1x1 + w2x2 +… + b will be positive, and for point lying on negative side of hyperplane will have w1x1 +w2x2 +… +b <0. And according to our function, our requirement is that,

w1x1 + w2x2 + +b > 0 for points belonging to class y = 1
w1x2 + w2x2 + + b <0 for points belonging to class y = -1

So instead of writing these two equations separately we can combine them into one.
(w1x1 + w2x2 + … +b ) * y >0 for all points. This will satisfy for both +1 as well as -1 class.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.