I’m working on building predictive classifiers in R on cancer dataset. I’m using random forest, support vector machine and navies Bayes classifiers. I’m unable to calculate variable importance on SVM and NB models
I end up receiving the subsequent error.
Error in UseMethod("varImp") : no applicable method for 'varImp' applied to an object of class "c('svm.formula', 'svm')"
I would greatly appreciate it if anyone could help me.
Thanks in advance.