search for: trainr

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

Did you mean: train
2005 Jul 05
1
Getting runtime error in stepclass
...dg == 1, select = dg:eg) ndgenes <- subset(td, dg == 0, select = dg:eg) n1 <- nrow(dgenes) n2 <- nrow(ndgenes) ndgrows <- 1:n2 selrows <- sample(ndgrows) sndgenes <- ndgenes[selrows[1:n1],] train <- rbind(dgenes, sndgenes) attach(train) traind <- subset(train, select = -dg) trainr <- factor(dg) detach(train) sc_res <- stepclass(traind, trainr, "svm", direction = "forward", criterion = "AC", fold = 10)