Displaying 3 results from an estimated 3 matches for "trainfile".
Did you mean:
mainfile
2008 Jul 03
1
randomForest.error: length of response must be the same as predictors
My 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 predicto...
2008 Jul 02
1
randomForest training error
...tors
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
instances is also around 4000.
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(datatrain, classtrain) :
length of response must be the same as predictor...
2008 Jun 17
1
Trouble with FUN(newX[, i], ...)
Hi,
I am trying to train svm with some training data of about 4000 rows and 4000
columns. While running svm function I am ending up with the following error.
trainfile <- read.csv('0_train_0016435.csv',head=TRUE,na.strings = "NULL")
datatrain <- subset(trainfile,select=c(-Class))
model <- svm(datatrain, kernel="radial")
Error in FUN(newX[, i], ...) : 'x' is empty
I tried substituting "NULL" strings in the...