powered by
data.frame
Returns train- and test dataframes as a list.
split_train_test(processed_df, split = 0.7)
A list containing the train- and the test set objects.
list
A preprocessed object of type ppred_examples_df returned by prepare_examples().
ppred_examples_df
prepare_examples()
numeric (default 0.7): A train-test split ratio.
numeric
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