Description Usage Arguments Details Value Examples
Repeated resampling methods
1 2 3 4 5 6 7 8 | repeated_resampling(
y,
method,
REPEATS = 1,
sample_rate = NULL,
FOLDS = NULL,
seed = 1
)
|
y |
the response variable (continuous or factor) |
method |
one of 'bootstrap', 'train_test_split', 'cross_validation' |
REPEATS |
the number of times that the method should be repeated |
sample_rate |
train-data-sample-rate for 'bootstrap' and 'train_test_split' |
FOLDS |
the number of folds for the 'cross_validation' method |
seed |
an integer specifying the RNG |
This function is meant for splitting the data using three resampling methods, with the option of multiple repeats.
a list of sublist(s)
1 2 3 4 5 6 7 8 | ## Not run:
data(Boston, package = 'MASS')
y = Boston$medv
res = repeated_resampling(y, 'bootstrap', REPEATS = 2, sample_rate = 0.75, FOLDS = NULL)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.