Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fit-alessandro-berti committed Nov 20, 2024
1 parent f045f12 commit 32600d5
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/01_handling_event_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ as a
|2|register request|20200422T0457|1479|
|1|submit payment|20200422T0503|1337|
|||||



In this small example table, we observe four columns, i.e.,
`CaseID`
,
Expand Down
13 changes: 12 additions & 1 deletion docs/04_process_discovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ mining algorithms.
|Weak against noise|Weak against noise|||





## Alpha Miner


Expand Down Expand Up @@ -167,6 +170,9 @@ if __name__ == "__main__":
|dependency_threshold|dependency threshold of the Heuristics Miner (default: 0.5)|
|and_threshold|AND measure threshold of the Heuristics Miner (default: 0.65)|
|loop_two_threshold|thresholds for the loops of length 2 (default 0.5)|



To visualize the Heuristic Net, code is also provided on the right-hand side.


Expand Down Expand Up @@ -407,6 +413,9 @@ generated model is less accurate (in comparison to the CLASSIC version) but the
calculation is faster. The default chunk size is 100000 events.|





## Temporal Profile


Expand Down Expand Up @@ -438,4 +447,6 @@ See Parameters
|---|---|---|---|
|Parameters.ACTIVITY_KEY|string|concept:name|The attribute to use as activity.|
|Parameters.START_TIMESTAMP_KEY|string|start_timestamp|The attribute to use as start timestamp.|
|Parameters.TIMESTAMP_KEY|string|time:timestamp|The attribute to use as timestamp.|
|Parameters.TIMESTAMP_KEY|string|time:timestamp|The attribute to use as timestamp.|


6 changes: 6 additions & 0 deletions docs/06_conformance_checking.md
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,9 @@ See Parameters
|Parameters.ZETA|int|6|Multiplier for the standard deviation. Couples of events that are more distant than this are signaled by the temporal profile.|





## LTL Checking


Expand Down Expand Up @@ -1077,6 +1080,9 @@ log: event log
A: the activity A of the rule (an activity of the log)
Returns:
Filtered log object (containing the cases which have A repeated by different people)|



The rules can be applied on both traditional event logs (XES) and Pandas dataframes,
by looking at the packages
pm4py.algo.filtering.log.ltl
Expand Down
3 changes: 3 additions & 0 deletions docs/07_process_trees.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ if lt_dependency > 0: this can be 1 or 0 (True or False) (default
True) (default 10)|





## Generation of a log out of a process tree


Expand Down
3 changes: 3 additions & 0 deletions docs/08_feature_selection.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ the attribute among the events of the trace.|
we have a trace [A,B,C], it might be important to include not only the presence of the
single values A, B and C as features; but also the presence of the directly-follows
couples (A,B) and (B,C).|



Let’s consider for example a feature selection where we are interested to:,

- If a process execution contains, or not, an activity.,
Expand Down
3 changes: 3 additions & 0 deletions docs/09_statistics.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ the cycle time of the instance)|
|@@approx_bh_overall_wasted_time|Difference between the partial lead time and the partial cycle time values|
|@@approx_bh_this_wasted_time|Wasted time ONLY with regards to the activity described by the ‘interval’ event|
|@@approx_bh_ratio_cycle_lead_time|Measures the incremental Flow Rate (between 0 and 1).|



The method that calculates the lead and the cycle time could be applied with the following line of code:


Expand Down
7 changes: 6 additions & 1 deletion docs/10_log-model_evaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,9 @@ executed.|
|RETURN_DIAGNOSTICS|Returns a dictionary containing the diagnostics.|
|RETURN_ASAP_WHEN_NOT_SOUND|Stops the execution of WOFLAN when a condition determining that the Petri net
is not a sound workflow net is found.|



On the provided Petri net, that is not sound, the output of the technique is False.
To know why such Petri net is not sound, we repeat the execution of the script setting
PRINT_DIAGNOSTICS to True and RETURN_ASAP_WHEN_NOT_SOUND to False (to get more
Expand Down Expand Up @@ -516,4 +519,6 @@ Inspect outputs
|R_G_S_C||
|R_G||
|LOCKING_SCENARIOS||
|RESTRICTED_COVERABILITY_TREE||
|RESTRICTED_COVERABILITY_TREE||


18 changes: 18 additions & 0 deletions docs/11_simulation.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ specified number of process executions (repetitions may be possible).|
|Variants.EXTENSIVE|A playout that accepts a Petri net along with an initial marking, and returns all the
executions that are possible according to the model, up to a provided
length of trace (may be computationally expensive).|



The list of parameters for such variants are:

Inspect parameters
Expand All @@ -34,6 +37,9 @@ Inspect parameters
||Parameters.TIMESTAMP_KEY|The name of the attribute to use as timestamp in the playout log.|
||Parameters.CASE_ID_KEY|The trace attribute that should be used as case identifier in the playout log.|
||Parameters.MAX_TRACE_LENGTH|The maximum trace length (after which, the extensive playout is stopped).|



An example application of the basic playout, given a Petri net, to get a log of 50 traces,
is the following:

Expand Down Expand Up @@ -142,6 +148,9 @@ the simulation process are:
|simulated_log|The traces that have been simulated during the simulation.|
|---|---|
|res|The result of the simulation (Python dictionary).|



Among
res
, that is the result of the simulation, we have the following keys:
Expand All @@ -160,6 +169,9 @@ fully enabled and the consumption of the tokens from the input places)|
from the event log.|
|total_cases_time|the difference between the last timestamp of the log, and the first timestamp of the
simulated log.|



The last four items of the previous list are simple Python objects (floats and lists in the
specific). The interval trees objects can be used in the following way to get time-specific
information. For example, the following code snippet
Expand Down Expand Up @@ -269,6 +281,9 @@ exponential)|
should be printed every 10 seconds).|





## Extensive Playout of a Process Tree


Expand Down Expand Up @@ -309,6 +324,9 @@ Inspect parameters
|---|---|
|MAX_TRACE_LENGTH|Maximum length of a trace that is output of the algorithm.|
|MAX_LOOP_OCC|Maximum number of times we enter in a loop.|



In the following, we see how the playout can be executed. First, a log can be imported:


Expand Down
3 changes: 3 additions & 0 deletions docs/15_streaming_process_mining.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ if __name__ == "__main__":
|Parameters.START_TIMESTAMP_KEY|string|start_timestamp|The attribute to use as start timestamp.|
|Parameters.TIMESTAMP_KEY|string|time:timestamp|The attribute to use as timestamp.|
|Parameters.ZETA|int|6|Multiplier for the standard deviation. Couples of events that are more distant than this are signaled by the temporal profile.|



We send the events of the log against the stream:


Expand Down

0 comments on commit 32600d5

Please sign in to comment.