cv.partition: the function mimic the cvpartition in MATLAB

View source: R/cv.R

cv.partitionR Documentation

the function mimic the cvpartition in MATLAB

Description

the function mimic the cvpartition in MATLAB

Usage

cv.partition(n, K)

Arguments

n

sample size

K

the number of cv folders

Value

a list of the follow elements

training

a list of K elements. Each element is a vector of indices of samples for training

test

a list of K elements. Each element is a vector of indices of samples for test

num.test.sets

an integer signifying the number of test sets


ZhuolinSong/wpe documentation built on Oct. 31, 2022, 7:38 p.m.