forked from SWISDATA/processintel
mining.genetic: start, end and loop measures ignore trace frequencies #17
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ffrauenberger/ProcessIntel#17
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: medium (the measures are wrong for logs with repeated variants)
Where
app/mining_algorithms/genetic_mining.py:203-242Problem
follows[a, b]for real activities comes fromfiltered_succession_matrix, which is frequency-weighted. The counts for the virtualstart/endarcs and the length-two-loop countsL2Literate over the keys ofnode_frequency_filtered_log(trace variants) and add1:The two kinds of counts are therefore on different scales: a variant seen 10,000 times weighs the same as one seen once in
S(t),E(t)and the L2L-based dependencies.Steps to reproduce
Expected behavior
Start, end and L2L counts are weighted by variant frequency, like the succession matrix.
Actual behavior
Each variant counts once. Rare variants influence start/end and loop structure as much as dominant ones, which biases the initial population and hurts convergence and model quality.
Fix
Iterate over
.items()and addfreqinstead of1.from
issues/BUG-017-genetic-miner-start-end-and-l2l-measures-ignore-trace-frequency.md(code analysis of commit6bcc646, 2026-10-03)