Description Usage Arguments Value
Split data set into training and validation sets, stratifying by groups. Of each class of n items, floor(fraction*n) go to training set and ceiling((1-fraction)*n) go to validation set.
1 2 |
data |
The data matrix |
fraction |
The fraction of data to place in the training and testing set. |
size |
The amount of data to place in the training and testing set |
replace |
Should the splitting be with replacement. Default is FALSE. |
stratify |
Variable according to which stratification should be performed. |
Indices of the training set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.