createFolds | R Documentation |
createFolds splits binary classification data into k-folds.
createFolds(target, k_fold = 10)
target |
A binary vector of a Ontology class |
k_fold |
An integer for the number of folds |
A random sampling is performed on binary classification data. A set of k data folds reflecting the original class balance is obtained.
list of row position integers corresponding to the training data
Flavio E. Spetale and Pilar Bulacio <spetale@cifasis-conicet.gov.ar>
Hyndman and Athanasopoulos (2013), Forecasting: principles and practice. https://www.otexts.org/fpp
data(CfData)
createFolds(CfData[["tableCfGO"]][ ,"GO:0005515"], k_fold = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.