powered by
k-fold cross validation, a splitFunction in the sense of vtreat::buildEvalSets
kWayCrossValidation(nRows, nSplits, dframe, y)
split plan
number of rows to split (>1).
number of groups to split into (>1,<=nRows).
original data frame (ignored).
numeric outcome variable (ignored).
kWayCrossValidation(7,2,NULL,NULL)
Run the code above in your browser using DataLab