random.CVind {gfboost} | R Documentation |
Cross validation index generator
Description
Simple auxiliary function for randomly generating the indices for training, validation and test data for cross validation.
Usage
random.CVind(n, ncmb, nval, CV)
Arguments
n |
Number of observations (rows). |
ncmb |
Number of training samples for the SingBoost models in CMB. Must be an integer between 1 and |
nval |
Number of validation samples in the CMB aggregation procedure. Must be an integer between 1 and |
CV |
Number of cross validation steps. Must be a positive integer. |
Details
The data set consists of $n$ observations. of them are used for the CMB aggregation procedure.
Note that within CMB itself, only a subset of these observations may be used for SingBoost training. The Stability
Selection is based on the validation set consisting of
observations. The cross-validated loss of the
final model is evaluated on the test data set with
observations. Clearly, all data sets need to
be disjoint.
Value
CVind |
List of row indices for training, validation and test data for each cross validation loop. |