Spaces:
Sleeping
Sleeping
File size: 566 Bytes
8097001 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import pm4py
from pm4py.algo.transformation.log_to_features import algorithm as feature_extraction
import os
def execute_script():
log = pm4py.read_xes(os.path.join("..", "tests", "input_data", "running-example.xes"))
data, feature_names = feature_extraction.apply(log, variant=feature_extraction.Variants.TRACE_BASED)
print(data)
print(feature_names)
data, feature_names = feature_extraction.apply(log, variant=feature_extraction.Variants.EVENT_BASED)
print(data)
print(feature_names)
if __name__ == "__main__":
execute_script()
|