On Sat, 19 Mar 2011, Penny B wrote:
I am trying to find out what type of sampling scheme is used to select the 10
subsets in 10-fold cross-validation process used in rpart to choose the best
tree. Is it simple random sampling? Is there any documentation available on
this?
Not SRS (and least in
I assume you mean rpart::xpred.rpart ? The beauty of R means that you
can look at the source. For the simple case (where xval is a single
number) the code does indeed do simple random sampling
xgroups<- sample(rep(1:xval, length = nobs), nobs, replace = FALSE)
If you want another sampling,
I am trying to find out what type of sampling scheme is used to select the 10
subsets in 10-fold cross-validation process used in rpart to choose the best
tree. Is it simple random sampling? Is there any documentation available on
this?
Thanks, Penny.
--
View this message in context:
http://r.78
Dear R users,
I know cross-validation does not work in rpart with user defined split
functions. As Terry Therneau suggested, one can use the xpred.rpart function
and then summarize the matrix of the predicted values into a single
"goodness" value.
I need only a confirmation: set for example xva
-- begin included message
I'm having a problem with custom functions in rpart, and before I tear my
hair out trying to fix it, I want to make sure it's actually a problem. It
seems that, when you write custom functions for rpart (init, split and eval)
then rpart no longer cross-validates the resul
Hello list,
I'm having a problem with custom functions in rpart, and before I tear my
hair out trying to fix it, I want to make sure it's actually a problem. It
seems that, when you write custom functions for rpart (init, split and eval)
then rpart no longer cross-validates the resulting tree to
Hello All,
I'm writing a custom rpart function, and I'm wondering about
cross-validation. Specifically, why isn't my splitting function being
called more often with the xval increased? One would expect that,
with xval=10 compared to xval=1, that the prior would call the
splitting function mo
7 matches
Mail list logo