Description Usage Arguments Value
View source: R/buildBalancedModelData.R
This function takes a starting folder "Original" and splits the classes within that folder into Training, Validation, and Testing data. The data is balanced so that the smallestclass dictates how much training data is added for each class. The remainders are added to the validation dataset.
1 2 | buildBalancedModelData(data.folder, trainpercent = 0.8,
validatepercent = 0.1, testpercent = 0.1)
|
data.folder |
Top directory that contains "Original" folder. "Model Data" will be added to this directory as well. |
trainpercent |
Percent of data to add to the training dataset. These three need to add to 1. |
validatepercent |
Percent of data to add to the validation dataset. These three need to add to 1. |
testpercent |
Percent of data to add to the test dataset. These three need to add to 1. |
Builds a balanced dataset from the Original folder. To be replaced eventually by buildModelData with balancing logical argument.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.