kfold: K-fold Resampling

View source: R/resample.R

kfoldR Documentation

K-fold Resampling

Description

K-fold Resampling

Usage

kfold(
  x,
  k = 10,
  stratify.var = NULL,
  strat.n.bins = 4,
  seed = NULL,
  verbosity = TRUE
)

Arguments

x

Input Vector

k

Integer: Number of folds. Default = 10

stratify.var

Numeric vector (optional): Variable used for stratification.

strat.n.bins

Integer: Number of groups to use for stratification for resampler = "strat.sub" / "strat.boot"

seed

Integer: (Optional) Set seed for random number generator, in order to make output reproducible. See ?base::set.seed

verbosity

Logical: If TRUE, print messages to console

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Aug. 30, 2024, 7:20 p.m.