Reputation: 179
I am a beginner in R. When fit an SVM model in R, I get a classification as below Where the decision boundary is a curve:
But I would rather have one as below Where the decision boundary is a smooth line.
Upvotes: 1
Views: 1365
Reputation: 66825
Simply change the kernel used to train your model from (probably currently used) rbf to linear
. Depending on the library used this parameter might be passed in a different way, but ultimatively this is all you need.
Upvotes: 1