pm4py.llm.abstract_log_attributes#
- pm4py.llm.abstract_log_attributes(log_obj: DataFrame | EventLog | EventStream, max_len: int = 10000, activity_key: str = 'concept:name', timestamp_key: str = 'time:timestamp', case_id_key: str = 'case:concept:name') str [source]#
Abstracts the attributes of a log by reporting their names, types, and top values.
- Return type:
str
- Parameters:
log_obj – The log object whose attributes are to be abstracted.
max_len (
int
) – Maximum length of the string abstraction (default: constants.OPENAI_MAX_LEN).activity_key (
str
) – The column name to be used as activity.timestamp_key (
str
) – The column name to be used as timestamp.case_id_key (
str
) – The column name to be used as case identifier.
- Returns:
The log attributes abstraction as a string.
import pm4py log = pm4py.read_xes("tests/input_data/roadtraffic100traces.xes") print(pm4py.llm.abstract_log_attributes(log))