I’m using PyML’s SVM to classify reads, but would like to set the discriminant to a higher value than the default (which I assume is 0). How do I do it?
Ps. I’m using a linear kernel with the liblinear-optimizer if that matters.
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.
Roundabout way of doing it below:
Use the
result.getDecisionFunction()method and choose according to your own preference.Returns a list of values like:
[-1.0000000000000213, -1.0000000000000053, -0.9999999999999893]Better answers still appreciated.