search for: predictionx

Displaying 1 result from an estimated 1 matches for "predictionx".

Did you mean: prediction
2011 Sep 13
0
Help in SVM prediction
...10 10 17 17 33 6 ... $ X1 : num 29105 29105 29105 29105 29105 .. I want the prediction of X consolidated on the basis of X4 into a separate data frame. The loop that I wrote for this is: len<-nrow(test); prediction<-data.frame(t(rep(NA,2))); names(prediction)<-c("X4","PredictionX"); prediction<-prediction[-1,]; for(j in 1:len) { prediction[j,1]<-test[j,1]; Forecast.List[j,2]<-predict(X,test[j,]); } when I do this I get the following error: Error in `contrasts<-`(`*tmp*`, value = "contr.treatment") : contrasts can be applied only to factors...