vtreat (version 1.6.4)

oneWayHoldout: One way holdout, a splitFunction in the sense of vtreat::buildEvalSets.

Description

Note one way holdout can leak target expected values, so it should not be preferred in nested modeling situations. Also, doesn't respect nSplits.

Usage

oneWayHoldout(nRows, nSplits, dframe, y)

Value

split plan

Arguments

nRows

number of rows to split (integer >1).

nSplits

number of groups to split into (ignored).

dframe

original data frame (ignored).

y

numeric outcome variable (ignored).

Examples

Run this code

oneWayHoldout(3,NULL,NULL,NULL)

Run the code above in your browser using DataLab