Displaying 2 results from an estimated 2 matches for "vote3".
Did you mean:
vote
2001 Nov 29
1
of c, cat, paste, and lists??
..."pop2" "pop3"
[26] "pop4" "pop5" "pop6" "pop7" "pop8"
[31] "pop9" "s" "vote1" "vote10" "vote2"
[36] "vote3" "vote4" "vote5" "vote6" "vote7"
[41] "vote8" "vote9" "X"
Now I want the "vote?" variables in a dataframe. I can grep them by
> grep("vote",ls(),value=T)
[1...
2013 Jan 08
0
bagging SVM Ensemble
....values=F)
no1<-sum(prediction1==0)
yes1<-sum(prediction1==1)
vote1<-c()
if(yes1>no1) vote1<-1 else vote1<-0
no2<-sum(prediction2==0)
yes2<-sum(prediction2==1)
vote2<-c()
if(yes2>no2) vote2<-1 else vote2<-0
no3<-sum(prediction3==0)
yes3<-sum(prediction3==1)
vote3<-c()
if(yes3>no3) vote3<-1 else vote3<-0
no4<-sum(prediction4==0)
yes4<-sum(prediction4==1)
vote4<-c()
if(yes4>no4) vote4<-1 else vote4<-0
tab1 <- table(pred = prediction1,testset$class)
tab2 <- table(pred = prediction2,testset$class)
tab3 <- table(pred = pred...