Venugopal Bukkala
Venugopal Bukkala

Reputation: 179

SVM Classification Plot in R

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:

enter image description here

But I would rather have one as below Where the decision boundary is a smooth line.

enter image description here

Upvotes: 1

Views: 1365

Answers (1)

lejlot
lejlot

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

Related Questions