pm4py.objects.log.util.split_train_test module#
- pm4py.objects.log.util.split_train_test.split(log: EventLog, train_percentage: float = 0.8) Tuple[EventLog, EventLog][source]#
Split an event log in a training log and a test log (for machine learning purposes)
- Parameters:
log – Event log
train_percentage – Fraction of traces to be included in the training log (from 0.0 to 1.0)
- Returns:
training_log – Training event log
test_log – Test event log