Learn R Programming

vtreat (version 1.6.4)

kWayCrossValidation: k-fold cross validation, a splitFunction in the sense of vtreat::buildEvalSets

Description

k-fold cross validation, a splitFunction in the sense of vtreat::buildEvalSets

Usage

kWayCrossValidation(nRows, nSplits, dframe, y)

Value

split plan

Arguments

nRows

number of rows to split (>1).

nSplits

number of groups to split into (>1,<=nRows).

dframe

original data frame (ignored).

y

numeric outcome variable (ignored).

Examples

Run this code

kWayCrossValidation(7,2,NULL,NULL)

Run the code above in your browser using DataLab