October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to train the SVM:
> library(e1071)
> model =svm(churn~., data = trainset, kernel="radial", cost=1, gamma = 1/ncol(trainset))
> summary(model)
Output
Call:
svm(formula = churn ~ ., data = trainset, kernel = "radial", cost = 1, gamma = 1/ncol(trainset))
Parameters:
SVM-Type: C-classification
SVM-Kernel: radial
cost: 1
gamma: 0.05882353
Number of Support Vectors: 691
( 394 297 )
Number of Classes: 2
Levels:
yes no
Read now
Unlock full access