I am trying code given in caret vignette and applying it on my data link. I am using this code to evaluate C5.0 with 10-fold cross validation and ROC metric on my data:
tuned <- train (training, class, method="C5.0", tuneLength=11, tuneGrid=expand.grid(.model="tree",.trials=c(1:100),.winnow=FALSE),trC=trainControl(method="repeatedcv",repeats=5,summaryFunction=twoClassSummary,classProbs=TRUE), metric="ROC")
Here, training
is training data without class label and class
is respective class label.
However I got this error:
Error in evalSummaryFunction(y, wts = weights, ctrl = trControl, lev = classLevels, : train()'s use of ROC codes requires class probabilities. See the classProbs option of trainControl()
Can someone point out where am I wrong?
something is wrong; all the ROC metric values are missing
" error you're having. [1]: stackoverflow.com/a/31467092/1710632 – KaanKaant