While i am using the confusionMatrix in R, I am getting the following error:Error in binom.test(sum(diag(x)), sum(x)) :   'n' must be a positive integer >= 'x'The code i use as follows:rf.pred <- predict(rf, testing, type = class)confusionMatrix(rf.pred, testing$target)
Errror in confusionMatrix in R
machine learning;data mining;r;classification;predictive modeling