Learn R Programming

emil (version 2.2.10)

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

Description

Convert a fold to row indexes of fittdng or test set

Usage

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.

See Also

emil, resample