Learn R Programming

spartan (version 3.0.2)

createtest_fold: Create test data fold for k-fold cross validation

Description

Create test data fold for k-fold cross validation

Usage

createtest_fold(fold, number_of_folds, test_fold_start, test_fold_end,
  dataset)

Arguments

fold

Number of the fold being examined

number_of_folds

Total number of folds

test_fold_start

Position at which the test fold starts in the dataset

test_fold_end

Position at which the test fold ends in the dataset

dataset

Testing data

Value

Testing data for this fold of k-fold cross validation