search for: classtrain

Displaying 4 results from an estimated 4 matches for "classtrain".

2008 Jul 03
1
randomForest.error: length of response must be the same as predictors
...data looks like: A,B,C,D,Class 1,2,0,2,cl1 1,5,1,9,cl1 3,2,1,2,cl2 7,2,1,2,cl2 2,2,1,2,cl2 1,2,1,5,cl2 0,2,1,2,cl2 4,2,1,2,cl2 3,5,1,2,cl2 3,2,12,3,cl2 3,2,4,2,cl2 **The steps followed are: trainfile <- read.csv("TrainFile",head=TRUE) datatrain <- subset(trainfile,select=c(-Class)) classtrain <- (subset(trainfile,select=Class)) rf <- randomForest(datatrain, classtrain) Error in randomForest.default(classtrain, datatrain) : length of response must be the same as predictors In addition: Warning message: In randomForest.default(classtrain, datatrain) : The response has five or f...
2010 Feb 18
3
svm regression
Hi, I am trying to use svm for regression data. this is how my data looks like: >dataTrain x y z 1 4 6 2 5 4 3 7 5 >classTrain a 2 3 4 >dataTest x y z 1 7 2 2 8 3 >classTest a 3 4 5 building the model model<-svm(dataTrain,classTrain,type="nu-regression") pred <- predict(model, dataTest) > pred 1 2 3.008842 3.120078 I don't understand what the above value means.i need...
2008 Jul 02
1
randomForest training error
While trying to train randomForest with my dataset, I am ending up with the following error Error in randomForest.default(datatrain, classtrain) : length of response must be the same as predictors My data looks like: A,B,C,D,Class 1,2,1,2,cl1 1,2,1,2,cl1 3,2,1,2,cl2 3,2,1,2,cl2 3,2,1,2,cl2 3,2,1,2,cl2 3,2,1,2,cl2 3,2,1,2,cl2 3,2,1,2,cl2 3,2,12,3,cl2 3,2,1,2,cl2 Actual dataset has around 4000 features and two classes. And number of insta...
2008 Mar 07
2
training svm
...with data having same value across all rows in some columns. These must be the important features of the class and we cant exclude these columns to build up models. The error I am getting is: Error in predict.svm(ret, xhold) : Model is empty! In addition: Warning message: In svm.default(datatrain, classtrain) : Variable(s) 'F112' and 'F113'.... [... truncated] Is there any way to overcome this problem? Any suggestions would be highly helpful. Regards Soumyadeep --------------------------------- [[alternative HTML version deleted]]