randomly: randomly

Description Usage Arguments Value Examples

View source: R/twk.randomly.R

Description

Folding strategie

Usage

1
randomly(data, sample_method = "cv", k = 5, ...)

Arguments

data

Training data

sample_method

Name of folding strategie.

  • cv Cross-Validation. k can be choosen (Default: 5)

k

Number of folds.

...

further arguments depends on the method.

Value

List of indices in train data.

Examples

1
2
set.seed(123)
folds <- randomly(iris, 'cv', k=5)

illoRocks/tweakr documentation built on July 23, 2019, 3:54 p.m.