pm4py.llm.abstract_event_stream(log_obj: Union[DataFrame, EventLog, EventStream], max_len: int = 10000, response_header: bool = True, activity_key: str = 'concept:name', timestamp_key: str = 'time:timestamp', case_id_key: str = 'case:concept:name') str[source]#

Obtains the event stream abstraction of a traditional event log

  • log_obj – log object

  • max_len (int) – maximum length of the (string) abstraction

  • response_header (bool) – includes a short header before the variants, pointing to the description of the abstraction

  • activity_key (str) – the column to be used as activity

  • timestamp_key (str) – the column to be used as timestamp

  • case_id_key (str) – the column to be used as case identifier

Return type:


import pm4py

log = pm4py.read_xes("tests/input_data/roadtraffic100traces.xes")