pm4py / pm4py-core

Public repository for the PM4Py (Process Mining for Python) project.
https://pm4py.fit.fraunhofer.de
GNU General Public License v3.0
722 stars 286 forks source link

Does “Heuristic Miner Plus Plus” support token-based replay? If support, could you share an example? #358

Closed JackEnzo closed 1 year ago

fit-alessandro-berti commented 1 year ago

Dear @JackEnzo

Yes. Once a Petri net was discovered with the Alpha++ algorithm, it can be used with any replay algorithm:

import pm4py

dataframe = pm4py.read_xes("tests/input_data/receipt.xes") net, im, fm = pm4py.discover_petri_net_alpha_plus(dataframe) replayed_traces = pm4py.conformance_diagnostics_token_based_replay(dataframe, net, im, fm) print(replayed_traces) aligned_traces = pm4py.conformance_diagnostics_alignments(dataframe, net, im, fm)