Open black1001 opened 4 years ago
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?
Hello. I want to get the coefficients of linear svm for my own desicion funciton(y=w*x+b), and try in this way:
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?