search for: maxcompet

Displaying 3 results from an estimated 3 matches for "maxcompet".

Did you mean: maxcompete
2002 Mar 29
1
memory error with rpart()
Dear all, I have a 100 iteration loop. Within each loop, there are some calls to rpart() like: ctl <- rpart.control(maxcompete=0, maxsurrogate=0, maxdepth=10) temp <- rpart(y~., x, w=wt, method="class", parms=list(split="gini"), control=ctl) res <- log(predict.rpart(temp, type="prob")) newres <- log(predict.rpart(temp, newdata=newx, type="prob")) The code runs fine for the...
2005 Jan 27
0
how to evaluate the significance of attributes in tree gr owing
FWIW, I wrote a little function to extract variable importance as defined in the CART book a while ago. It's rather limited: Only works for regression problem, and you need to set maxsurrogate=0 and maxcompete=0. It may (or may not) help you: varimp.rpart <- function(x) { dev <- x$frame[, c("var", "dev")] dev <- dev[dev$var != "<leaf>", ] improve <- x$split[, "improve"] imp <- tapply(dev[, 2] * improve, dev$var, sum)[-1]...
2006 Aug 24
0
Classification tree with a random variable
...the variable 'site' in as the 'xval' value. I have given an example of how I have done this below in a simplified version of the model. Is how I have done this correct? hp1<-rpart(formula=hollowpres~dbh + lat + long +alt, data=test,method="class",control=rpart.control (maxcompete=4,xval=site), na.action=na.rpart) Thanks Amy [[alternative HTML version deleted]]