R/outOfSample.R
oneWayHoldout.Rd
Note one way holdout can leak target expected values, so it should not be preferred in nested modeling situations. Also, doesn't respect nSplits.
oneWayHoldout(nRows, nSplits, dframe, y)
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). |
split plan
oneWayHoldout(3,NULL,NULL,NULL)#> [[1]] #> [[1]]$train #> [1] 2 3 #> #> [[1]]$app #> [1] 1 #> #> #> [[2]] #> [[2]]$train #> [1] 1 3 #> #> [[2]]$app #> [1] 2 #> #> #> [[3]] #> [[3]]$train #> [1] 1 2 #> #> [[3]]$app #> [1] 3 #> #> #> attr(,"splitmethod") #> [1] "oneway"