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

View source: R/outOfSample.R

kWayCrossValidationR Documentation

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)

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).

Value

split plan

Examples


kWayCrossValidation(7,2,NULL,NULL)


WinVector/vtreat documentation built on June 17, 2024, 3:29 a.m.