I run knn model in R using the following model
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.