CV_partition | R Documentation |
Partition the genotype indices into training and validation sets for cross-validation (CV).
CV_partition(cross.ind, k = 5)
cross.ind |
|
k |
|
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.
Return:
fold |
|
Vincent Garin
mpp_CV
data(mppData)
part.cv <- CV_partition(cross.ind = mppData$cross.ind, k = 5)
part.cv[[1]]$train.set
part.cv[[1]]$val.set
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.