In the caret documentation, the p argument of trainControl refers to "For leave-group out cross-validation: the training percentage".
Could anyone please explain the difference of the following when defining a 10-fold cross validation for passing to the train function of the caret package -
(a). control <- trainControl(method = "cv", number = 10, p=.9)
(b). control <- trainControl(method = "cv", number = 10)
As an example, say if we have a data set of 10,000 observations. As we have 10 folds for both, for (a), my understanding is that each fold would have 1,000 of the observations and each time nine folds with a total of 9000 observations (90%) would be used for training. For (b), 9 folds for training would together have 750 (75%) of the observations (as the default value of p=.75) with the remaining fold for testing always having 250 (25%) observations. Is my understanding correct ?
Do you call both 10-fold cross validation ? Or should the first one be called leave-group out 10-fold cross-validation ?