0

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)

user438383
  • 4,338
  • 6
  • 23
  • 35
  • Could you try to make your example [reproducible](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example)?. Also, could you show some of the `warnings()`? – Joaquín L Feb 10 '22 at 19:03

0 Answers0