Error in Confusion Matrix with Random Forest
问题 I have a dataset with 4669 observations and 15 variables. I am using Random forest to predict if a particular product will be accepted or not. With my latest data , I have my output variable with "Yes", "NO" and "". I wanted to predict if this "" will have Yes or No. I am using the following code. library(randomForest) outputvar <- c("Yes", "NO", "Yes", "NO", "" , "" ) inputvar1 <- c("M", "M", "F", "F", "M", "F") inputvar2 <- c("34", "35", "45", "60", "34", "23") data <- data.frame(cbind