r - Response and predictor must be vectors of the same length -


i'm using proc curve in order compare performance of models. have plotted 4 svm models. when plot decision tree model following error:

error in roc.default(x, predictor, ...) :    response , predictor must vectors of same length. 

the following code represent how plotted curve:

rocobj1 <-plot(roc(as.numeric(video.test$rate),as.numeric(svm.grossesse.pred4)),main="comparaison ",col="#1c61b6") rocobj5 <-lines.roc(as.numeric(video.test$rate),as.numeric(predarbredecision),col="pink") 


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -