Pre-computed cross-plan (so same split happens each time).

pre_comp_xval(nRows, nSplits, splitplan)

Arguments

nRows

number of rows to split (integer >1).

nSplits

number of groups to split into (ignored).

splitplan

split plan to actually use

Value

splitplan

Examples

p1 <- oneWayHoldout(3,NULL,NULL,NULL) p2 <- pre_comp_xval(3, 3, p1) p2(3, 3)
#> [[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 ( pre-computed 3 3 )"