How can find what the vector w is, i.e. the perpendicular to the separation plane?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is how I did it here. If I remember correctly, this is based on how the dual form of the SVM optimisation works out.
And the bias is (and I don’t really remember why its negative):
Then to do the classification (for a linear SVM), for a N-by-M dataset ‘features’ with N instances and M features,
If the kernel is not linear, then this won’t give you the right answer.
For more information see How could I generate the primal variable w of linear SVM? , from the manual of libsvm.