Description Usage Arguments Details Value
View source: R/DataSplitting.R
Split test/train data by time and then partitions training set into random folds stratified by class
1 | timeSplitter(population, test = 0.3, train = NULL, nfold = 3, seed = NULL)
|
population |
An object created using createStudyPopulation(). |
test |
A real number between 0 and 1 indicating the test set fraction of the data |
train |
A real number between 0 and 1 indicating the training set fraction of the data |
nfold |
An integer >= 1 specifying the number of folds used in cross validation |
seed |
If set a fixed seed is used, otherwise a random split is performed |
Returns a dataframe of rowIds and indexes with a -1 index indicating the rowId belongs to the test set and a positive integer index value indicating the rowId's cross valiation fold within the train set.
A dataframe containing the columns: rowId and index
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.