Skip to contents

A uniformly random split – the right default when nothing about row order or grouping is meaningful.

Usage

setup_RandomPartition(train_p = 0.75, seed = NULL)

Arguments

train_p

Numeric (0, 1): Training set fraction.

seed

Optional Integer [0, Inf): Random seed.

Value

RandomPartitionConfig object.

Author

EDG

Examples

setup_RandomPartition(train_p = 0.8, seed = 2026L)
#> <RandomPartitionConfig>
#> 
#>    method: <chr> random
#>   train_p: <nmr> 0.80
#>      seed: <int> 2026
#>