October 2017
Beginner to intermediate
572 pages
26h 1m
English
Perform the following steps to predict the labels of the testing dataset:
> svm.pred = predict(model, testset[, !names(testset) %in% c("churn")])
> svm.table=table(svm.pred, testset$churn) > svm.table Output svm.pred yes no yes 70 12 no 71 865
> classAgreement(svm.table) Output $diag [1] 0.9184676 $kappa [1] 0.5855903 $rand [1] 0.850083 $crand [1] 0.5260472
Read now
Unlock full access