Description Usage Arguments Value Author(s)
View source: R/Data_table_with_train_test_sets.R
Select n random subsets for training. among the biological samples from a DataTableWithClasses.
1 2 3 4 5 6 | DataTableWithTrainTestSets(
self,
stratified = TRUE,
iterations = parameters$iterations,
trainingProportion = parameters$trainingProportion
)
|
self |
an object of the class DataTableWithClasses |
stratified=TRUE |
if true, sampling is done in each class separately in order to preserve the relative frequencies of classes in training and testing sets. |
iterations=parameters$iterations |
number of train/test iterations, which defines the number of independent sampled subsets |
trainingProportion=parameters$trainingProportion |
proportion of samples to sample for each training set |
object of class DataTableWithTrainTestSets containing the following attributes
iteration: which is number of resampling
trainPropotion: which is ratio of train volume from whole of dataset
statified: parameter which refer to stratification criteria would be included in analysis or not.
trainSizePerClass: which is specify the train volume for each class included in analysis.
trainIndices: which are whole indices for training process.
testIndices: which are whole indices for the testing process.
Jacques van Helden and Mustafa AbuElQumsan
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.