split_train_test: Splits the preprocessed 'data.frame'.

View source: R/split_train_test.R

split_train_testR Documentation

Splits the preprocessed data.frame.

Description

Returns train- and test dataframes as a list.

Usage

split_train_test(processed_df, split = 0.7)

Arguments

processed_df

A preprocessed object of type ppred_examples_df returned by prepare_examples().

split

numeric (default 0.7): A train-test split ratio.

Value

A list containing the train- and the test set objects.

Examples

library(processpredictR)
library(eventdataR)

df <- prepare_examples(patients, "next_activity")
split_train_test(df, split = 0.8)


processpredictR documentation built on Jan. 18, 2023, 1:09 a.m.