CV_partition {mppR} | R Documentation |
Cross validation partition
Description
Partition the genotype indices into training and validation sets for cross-validation (CV).
Usage
CV_partition(cross.ind, k = 5)
Arguments
cross.ind |
|
k |
|
Details
The genotype indices are randomly assigned within cross to k subsets (folds). Then each subset is used once as validation set, the remaining data go in the training set.
Value
Return:
fold |
|
Author(s)
Vincent Garin
See Also
Examples
data(mppData)
part.cv <- CV_partition(cross.ind = mppData$cross.ind, k = 5)
part.cv[[1]]$train.set
part.cv[[1]]$val.set
[Package mppR version 1.5.0 Index]