pm4py.llm.abstract_temporal_profile#
- pm4py.llm.abstract_temporal_profile(temporal_profile: Dict[Tuple[str, str], Tuple[float, float]], include_header: bool = True) str [source]#
Abstracts a temporal profile model into a descriptive string.
- Return type:
str
- Parameters:
temporal_profile – The temporal profile model to abstract.
include_header (
bool
) – Whether to include a header in the abstraction describing the temporal profile.
- Returns:
The temporal profile abstraction as a string.
import pm4py log = pm4py.read_xes("tests/input_data/roadtraffic100traces.xes", return_legacy_log_object=True) temporal_profile = pm4py.discover_temporal_profile(log) text_abstr = pm4py.llm.abstract_temporal_profile(temporal_profile, include_header=True) print(text_abstr)