index_fit: Convert a fold to row indexes of fittdng or test set

Description Usage Arguments Value Author(s) See Also

View source: R/resampling.r

Description

Convert a fold to row indexes of fittdng or test set

Usage

1
2
3
index_fit(fold, allow_oversample = TRUE)

index_test(fold)

Arguments

fold

A fold of a resampling scheme.

allow_oversample

Whether or not to allow individual observation to exist in multiple copies in the training set. This is typically not the case, but can be used when a class is underrepresented in the data set.

Value

An integer vector of row indexes.

Author(s)

Christofer Bäcklin

See Also

emil, resample


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