Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

How to tune C parameter in SVM in R?

$
0
0

@Corporate_Cowboy wrote:

Howdy!

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'

Regards,
CC

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles