Description Usage Arguments Value Examples
This function will split multiple data sets into training and test sets. Nonmissing elements are randomly selected as the test sets. Then the selected elements are taken as missing, and regarded as training sets. The details can be found in https://arxiv.org/abs/1902.06241.
1 | dataSplit(dataSets, dataTypes, ratio_mis = 0.1)
|
dataSets |
a list contains multiple matrices with same number of rows.
Each matrix ( |
dataTypes |
a string indicates the data types of the multiple data sets. |
ratio_mis |
how many percent of test set could be? default: 0.1 |
This function returns a list contains
trainSets: a list contains the training sets;
testSets: a list contains the test sets;
indexSets: a list contains the index sets.
1 | ## Not run: dataSplit(dataSets,dataTypes,ratio_mis=0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.