Spaces:
Runtime error
Runtime error
Download pm4py/examples/case_overlap_stat.py from linpershey/process_mining: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/spaces/linpershey/process_mining/resolve/main/pm4py/examples/case_overlap_stat.py
- Command line
-
hf download hf://spaces/linpershey/process_mining/pm4py/examples/case_overlap_stat.py
-
curl -L -o case_overlap_stat.py https://huggingface.co/spaces/linpershey/process_mining/resolve/main/pm4py/examples/case_overlap_stat.py
473 Bytes
| import pm4py | |
| import os | |
| from pm4py.statistics.overlap.cases.log import get as case_overlap_get | |
| def execute_script(): | |
| log = pm4py.read_xes(os.path.join("..", "tests", "input_data", "receipt.xes")) | |
| # calculates the WIP statistics from the event log object. | |
| # The WIP statistic associates to each case the number of cases open during the lifecycle of the case | |
| wip = case_overlap_get.apply(log) | |
| print(wip) | |
| if __name__ == "__main__": | |
| execute_script() | |