setup_TimePartition: Set up a 'TimePartitionConfig'

View source: R/048_PartitionConfig.R

setup_TimePartitionR Documentation

Set up a TimePartitionConfig

Description

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(s)

EDG

Examples

setup_TimePartition(column = "visit_date", train_p = 0.8)

rtemis documentation built on Oct. 20, 2026, 1:06 a.m.