Learn R Programming

rtemis (version 1.4.3)

setup_TimePartition: 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)

Value

TimePartitionConfig object.

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.

Author

EDG

Examples

Run this code
setup_TimePartition(column = "visit_date", train_p = 0.8)

Run the code above in your browser using DataLab