GetTrainTestSplitMat: Make random partitions

View source: R/biomarker_utils.R

GetTrainTestSplitMatR Documentation

Make random partitions

Description

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

Usage

GetTrainTestSplitMat(y, propTraining = 2/3, nRuns = 30)

Arguments

y

Input the data

propTraining

By default set to 2/3

nRuns

By default set to 30

Author(s)

Jeff Xia jeff.xia@mcgill.ca McGill University, Canada License: GNU GPL (>= 2)


xia-lab/MetaboAnalystR documentation built on Dec. 23, 2024, 3:44 p.m.