Description Usage Arguments References Examples
Generate cross-validated v-fold test-training pairs
1 | crossv_vfold(n, v = 5L, shuffle = TRUE)
|
n |
A positive, scalar integer representing the number of observations (items to choose from). |
v |
A scalar integer representing the number of folds in cross validation. |
shuffle |
A flag which indicates whether to randomly assign observations to folds. |
Breiman, L., Friedman, J.H., Olshen, R.A. and Stone, C.J. (1984) Classification and Regression Trees. Wadsworth.
Burman, P. (1989) "A comparative study of ordinary cross-validation, v-fold cross-validation and repeated learning-testing methods." Biometrika, 76, 503<e2><80><93>514
Davison, A.C. and Hinkley, D.V. (1997) Bootstrap Methods and Their Application. Cambridge University Press.
Efron, B. (1986) "How biased is the apparent error rate of a prediction rule?" Journal of the American Statistical Association, 81, 461<e2><80><93>470.
Stone, M. (1974) "Cross-validation choice and assessment of statistical predictions (with Discussion)". Journal of the Royal Statistical Society, B, 36, 111<e2><80><93>147.
1 | crossv_vfold(20, v = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.