I was using svm in a classification problem.
The changes in the cost parameter change the decision boundary. Can you please help me out in getting the optimum cost parameter for the best classification?
The code is as follows:
library (e1071) model<-svm(y∼., data=train , kernel ="linear", cost=10, scale=FALSE) plot(model,train)
Here the training set is ‘train’ and the dependent variable is ‘y’