ergminer.conformance
ergminer.conformance_erg(log, erg, sim_log=None, n_simulations=10, sim_time=5000.0, seed=42, case_id_col='case_id', activity_col='activity_name', timestamp_col='timestamp', resource_col='resource_id', verbose=False)
Run conformance checking between log and erg.
Compares the observed behaviour in log against the ERG model using
twelve complementary fitness metrics. If sim_log is not provided,
play_out() is called automatically to generate simulation replications.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
log
|
DataFrame
|
Original event log DataFrame (user column names). |
required |
erg
|
'ERG'
|
The |
required |
sim_log
|
Optional[DataFrame]
|
Pre-computed simulation log from |
None
|
n_simulations
|
int
|
Number of simulation replications (used only when
sim_log is |
10
|
sim_time
|
float
|
Simulation horizon passed to |
5000.0
|
seed
|
int
|
Base random seed for simulations (used only when
sim_log is |
42
|
case_id_col
|
str
|
Column name for case identifiers in log. |
'case_id'
|
activity_col
|
str
|
Column name for activity names in log. |
'activity_name'
|
timestamp_col
|
str
|
Column name for timestamps in log. |
'timestamp'
|
resource_col
|
str
|
Column name for resource identifiers in log. |
'resource_id'
|
verbose
|
bool
|
Print progress to stdout. |
False
|
Returns:
| Type | Description |
|---|---|
'ConformanceResult'
|
|
Source code in src\ergminer\conformance.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 | |