Description Usage Arguments Value Examples
View source: R/buildModelData.R
Create train, validation and training data from a pool of original class sorted data This function creates a "Model Data" folder and necessary subfolders with and populated them with
1 2 | buildModelData(data.folder = getwd(), trainpercent = 0.85,
validatepercent = 0.15, testpercent = 0, balanceData = FALSE)
|
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. |
balanceData |
logical of whether you'd like to balance the training data based on the class with the fewest examples |
Produces a random dataset with training, testing, and validation sets
1 2 3 4 | ## Not run:
buildModelData("F:/Adam Cummings/DimecV1/Data")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.