Skip to contents

A split by time order: the earliest-ordered cases train, the latest-ordered are held out.

Usage

setup_TimePartition(column = NULL, train_p = 0.75)

Arguments

column

Optional Character: Name of the column to order cases by before splitting.

train_p

Numeric (0, 1): Fraction of the earliest-ordered cases assigned to training.

Value

TimePartitionConfig object.

Author

EDG

Examples

setup_TimePartition(column = "visit_date", train_p = 0.8)
#> <TimePartitionConfig>
#> 
#>    method: <chr> time
#>    column: <chr> visit_date
#>   train_p: <nmr> 0.80
#>