Learn R Programming

processpredictR (version 0.1.0)

split_train_test: Splits the preprocessed data.frame.

Description

Returns train- and test dataframes as a list.

Usage

split_train_test(processed_df, split = 0.7)

Value

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

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.

Examples

Run this code
library(processpredictR)
library(eventdataR)

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

Run the code above in your browser using DataLab