k_folds: k-fold cross-validation indices

Description Usage Arguments Value Note

View source: R/k_folds.R

Description

Produces k-fold partitions of training and validation indices for a dataset.

Usage

1
k_folds(n, k, seed = NULL)

Arguments

n

number of data points (integer valued numeric > 1)

k

number of k-folds (integer valued numeric > 1)

seed

sets random seed for reproducibility (numeric)

Value

A list of length two, each entry itself being a list of length K containing the training (validation) indices.

Note

See also tsmvr_cv.


spcorum/tsmvr documentation built on Aug. 31, 2019, 8:58 p.m.