Learn R Programming

spartan (version 3.0.2)

createTrainingFold: Create training data fold for k-fold cross validation

Description

Create training data fold for k-fold cross validation

Usage

createTrainingFold(fold, number_of_folds, training_fold_start,
  training_fold_end, dataset)

Arguments

fold

Number of the fold being examined

number_of_folds

Total number of folds

training_fold_start

Position at which the training fold starts in the dataset

training_fold_end

Position at which the training fold ends in the dataset

dataset

Training data

Value

Training data for this fold of k-fold cross validation