Description Usage Arguments Value Examples
View source: R/dataManipulations.R
Function to stratified split a dataset and return training, test and eval sets as data.frame or data.table
1 2 | splitDataToTrainTestStratified(x, strataCols = NULL, trainProportion,
evalProportion = NULL, levels = 50, seed = 999, DT = T)
|
x |
A data.frame or data.table object containing all data to be split |
strataCols |
Names of columns or features that will be used to do stratification |
trainProportion |
Proportion of training set |
evalProportion |
Proportion of validation set |
levels |
Threshold of determine a feature to be categorical and qualified for stratification |
seed |
Random seeds for reproducibility |
DT |
If the function returns a list of data.tables or data.frames |
A list
of data.table
or data.frame
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.