Running this code:
svm_Linear=train(AYC~.,data=training,method="svmLinear",trControl=trctrl,preProcess=c("Center","Scale"),tuneLength=10)
Gives this error:
Something is wrong; all the Accuracy metric values are missing: Accuracy Kappa Min. : NA Min. : NA 1st Qu.: NA 1st Qu.: NA Median : NA Median : NA Mean :NaN Mean :NaN 3rd Qu.: NA 3rd Qu.: NA Max. : NA Max. : NA NA's :1
NA's :1 Error: Stopping In addition: There were 21 warnings (use warnings() to see them)