Accuracy metric values are missing in knn


I run knn model in R using the following model :slight_smile:
model.knn<-train(CRC, CRC$Detection,

             method = "knn", 
             na.action = na.omit, 
             tuneGrid  = expand.grid(k =1:10),
             trcontrol= trainControl(method= "cv", number = 10),


But I got an error that all the Accuracy metric values are missing rror: Stopping
In addition: There were 50 or more warnings (use warnings() to see the first 50)

Any help is appreciated.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.