getGroupCVFoldIDs | R Documentation |
Given a vector of group IDs 'groups', returns a vector where each element is an integer representing the fold the corresponding element in 'groups' is assigned to. Elements with the same group ID will always be assigned to the same fold.
getGroupCVFoldIDs(groups, nFolds, seed = NULL)
groups |
A vector of group IDs. |
nFolds |
An integer representing the number of folds. |
seed |
An integer to use as the random seed. |
A list containing foldIDs, groupToFoldMap and foldToNElementsMap.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.