View source: R/biomarker_utils.R
GetTrainTestSplitMat | R Documentation |
Make random partitions, returns matrices indicating whether the observation is in train/test for each run note: try to get a balanced sampling for each group (classification) or each quantile (regression). This is very useful for unbalanced data
GetTrainTestSplitMat(y, propTraining = 2/3, nRuns = 30)
y |
Input the data |
propTraining |
By default set to 2/3 |
nRuns |
By default set to 30 |
Jeff Xia jeff.xia@mcgill.ca McGill University, Canada License: GNU GPL (>= 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.