pm4py.objects.oc_causal_net.utils.filters module#
PM4Py – A Process Mining Library for Python Copyright (C) 2026 Process Intelligence Solutions GmbH
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see this software project’s root or visit <https://www.gnu.org/licenses/>.
Website: https://processintelligence.solutions Contact: info@processintelligence.solutions
- pm4py.objects.oc_causal_net.utils.filters.filter4(input_marker_groups, output_marker_groups, threshold, activity_count)[source]#
Filters input_marker_groups and output_marker_groups by relative support, then recursively keeps only those MarkerGroups that remain connected.
- Parameters:
input_marker_groups (Dict[str, List[OCCausalNet.MarkerGroup]]) – Input marker groups of the activities
output_marker_groups (Dict[str, List[OCCausalNet.MarkerGroup]]) – Output marker groups of the activities
threshold (float) – Minimum relative support = support_count / activity_count[activity]
activity_count (Dict[str,int]) – Absolute frequency of each activity in the event log.
- Returns:
Tuple[ – Dict[str, List[OCCausalNet.MarkerGroup]], Dict[str, List[OCCausalNet.MarkerGroup]]
] – (filtered_input_marker_groups, filtered_output_marker_groups)