Quin Wills
2006-May-02 17:10 UTC
[R] How to use a validation set rather than the default cross-validation in rpart() ?
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! [[alternative HTML version deleted]]
Uwe Ligges
2006-May-03 06:53 UTC
[R] How to use a validation set rather than the default cross-validation in rpart() ?
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