Displaying 2 results from an estimated 2 matches for "traingroups".
Did you mean:
ringroups
2004 Jan 19
1
qda problem
Hi,
the following strange error appears when I use qda:
> qda1 <- qda(as.data.frame(mfilters[cvtrain,]),as.factor(traingroups))
Error: function is not a closure
That's also strange:
> qda1 <- qda(mfilters[cvtrain,],as.factor(traingroups))
Error in qda.default(mfilters[cvtrain, ], as.factor(traingroups)) :
length of dimnames must match that of dims
Some backgroud:
> str(mfilters[cvtrain,])
num [1:12500, 1...
2004 Jan 20
1
random forest question
...the same which is strange because I
changed the classwt.
I hoped that for example classwt=c(0.45,0.1,0.45) would result in fewer
cases classified as class 2. Did I understand something wrong?
Christian
x1rf <- randomForest(x=as.data.frame(mfilters[cvtrain,]),
y=as.factor(traingroups),
xtest=as.data.frame(mfilters[cvtest,]),
ytest=as.factor(testgroups))
> x1rf$test$confusion
1 2 3 class.error
1 9954 30 19 0.00489853
2 139 1854 0 0.06974410
3 420 0 84 0.83333333
x1rf <- randomForest(x=as.data.frame(mfilters[cvtr...