New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusion matrix error #947
Comments
problem solved. |
Hi, can you show how did you solve this problem? I have de same |
He was predicting on his model in the confusion matrix, rather than the prediction itself. I just ran into error this myself. For my code which produced the error: svm.model001 <- train(class_name~., data=Train001, method = "svmRadial", svm.predict001 <-predict(svm.model001, DelTest, verboseIter = TRUE) The issue is in the confusionMatrix line. It should read my stored prediction variable instead of the model variable. |
Thank you so much! it worked |
Hello,
I am asking for the confusion matrix using the following line:
confusionMatrix(cart.model, test$meet_kpi, positive='No')
and get the following error:
I would like to find out what is the nature of this error, what is the complaint.
Thanks in advance,
Ronen
The text was updated successfully, but these errors were encountered: