[R] How to use a validation set rather than the default cross-validation in rpart() ?
Uwe Ligges
ligges at statistik.uni-dortmund.de
Wed May 3 08:53:09 CEST 2006
Quin Wills wrote:
> I want use a validation set for my classification tree rather than the
> default 10-fold validation in rpart() but can't see which arguments to use
> to get this right. Advice appreciated thanks. I assume that this is
> possible!
You cannot for the internal algorithm that optimizes the splits of the
tree. Of course you can do so for estimating the misclassification rate
(or whatever), but this has nothing to do with rpart() itself....
Uwe Ligges
More information about the R-help
mailing list