repeated_resampling: Repeated resampling methods

Description Usage Arguments Details Value Examples

Description

Repeated resampling methods

Usage

1
2
3
4
5
6
7
8
repeated_resampling(
  y,
  method,
  REPEATS = 1,
  sample_rate = NULL,
  FOLDS = NULL,
  seed = 1
)

Arguments

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

Details

This function is meant for splitting the data using three resampling methods, with the option of multiple repeats.

Value

a list of sublist(s)

Examples

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)

mlampros/RandomSearchR documentation built on Feb. 18, 2021, 9:48 a.m.