subresample: Generate resampling subschemes

Description Usage Arguments Value Author(s) See Also Examples

View source: R/resampling.r

Description

A subscheme is a resampling scheme that only includes observations in the training set of a fold. This function automatically fetches the type and parameters of the prototype fold and use them to generate the subscheme.

Usage

1
subresample(fold, y)

Arguments

fold

A resampling scheme or fold to use to define the sub scheme(s).

y

The observations used to create the resampling scheme. See resample for details.

Value

A resampling scheme.

Author(s)

Christofer Bäcklin

See Also

emil, resample

Examples

1
2
cv <- resample("holdout", y=1:12, test_fraction=1/4, nfold=3)
inner.cv <- subresample(cv, y=1:12)

emil documentation built on Aug. 1, 2018, 1:03 a.m.

Related to subresample in emil...