pm4py.stats.get_stochastic_language#

pm4py.stats.get_stochastic_language(*args, **kwargs) Dict[List[str], float][source]#

Gets the stochastic language from the provided object

Parameters:
  • args – Pandas dataframe / event log / accepting Petri net / process tree

  • kwargs – keyword arguments

Return type:

Dict[List[str], float]

import pm4py

log = pm4py.read_xes('tests/input_data/running-example.xes')
language_log = pm4py.get_stochastic_language(log)
print(language_log)
net, im, fm = pm4py.read_pnml('tests/input_data/running-example.pnml')
language_model = pm4py.get_stochastic_language(net, im, fm)
print(language_model)