forked from SWISDATA/processintel
mining.base: deduplicate the filter pipeline in BaseMining #49
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ffrauenberger/ProcessIntel#49
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: improvement (medium)
Where
app/mining_algorithms/base_mining.py:38-146vs.:669-753Problem
The sequence SPM filter → node-frequency filter → edge frequencies → start/end nodes → filtered succession matrix → clustering is written out twice (about 70 lines) in
BaseMining.__init__andrecalculate_model_filters. The copies have already drifted apart:__init__computes absolute thresholds itself and writes session state directly, while the recalculation path uses_sync_thresholdsAlphaMining/FuzzyMiningcall_calculate_filtered_model_state()in both__init__andgenerate_graph, andHeuristicMining.generate_graphrecomputesstart_nodes/end_nodesbefore the filters are recalculatedFix
__init__sets defaults and calls a single_apply_filters()(the currentrecalculate_model_filtersbody without the early-return cache)from
issues/ARCH-004-duplicated-filter-pipeline-in-base-mining.md(code analysis of commit6bcc646, 2026-10-03)