Description Usage Arguments Value Examples
create training, testing and validation datasets in specified proportion
1 | train_test_val(data, prop_train = 0.8, prop_test = 0, prop_validation = 0)
|
data |
a data.frame type object to split |
prop_train |
proportion of data in training set |
prop_test |
proportion of data in test set |
prop_validation |
proportion of data in validation set (optional) |
a list containing the train and test data (and validation data if proportion > 0)
1 2 3 | data.ex <- data.frame('A' = sample(1:100,100), 'B' = sample(101:200,100))
train_test_val(data.ex, 0.6)
train_test_val(data.ex, 0.6, 0.3, 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.