thundersvm
thundersvm copied to clipboard
How to get coef of linear svm?(w, b)
Hello. I want to get the coefficients of linear svm for my own desicion funciton(y=w*x+b), and try in this way:
w = model.coef_.T
b = model.intercept_
but the signs and categories of y cannot correspond.
How can I get w and b, so as to predict the label of y by the sign of w*x+b?
The way you used to obtain w and b is correct. Maybe you have issues in other places?