Labeling of data

How can we randomly label a particular class as +1 and the other class as -1? Don’t we have to check whether the distance of points of a particular class from the hyperplane is positive or negative and then label the classes as +1 or -1 accordingly.

Hey Shubham,
We do not randomly label classes as +1 or -1. When we have two labels (classes) in our training set then we pick one class and label it +1 and all the other examples with the other class is labelled as -1. The hyperplane which is obtained after training is formed as such that the positive and negative distances are thus distributed along these two classes.

I hope this clears your doubt.

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.