ypred <- predict(svm, newdata = test) this code I can't run always show "Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) : contrasts can be applied only to factors with 2 or more levels" this message
You must be logged in to post a comment.
Remember Me
Not a member yet? Register now
I accept the Terms of Service
Are you a member? Login now
1 Comments
ypred <- predict(svm, newdata = test) this code I can't run always show
"Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels" this message