create_seeded_folds: Create seeded folds

View source: R/utils.R

create_seeded_foldsR Documentation

Create seeded folds

Description

A utility function used in RAFS but useful also for external cross-validation.

Usage

create_seeded_folds(decision, k, seed)

Arguments

decision

decision variable as a binary sequence of length equal to number of observations

k

number of folds for cross validation

seed

a numerical seed

Value

A vector of folds. Each fold being a vector of selected indices.


RAFS documentation built on April 3, 2025, 5:27 p.m.