pm4py.algo.filtering.log.start_activities package#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py 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 General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

Submodules#

pm4py.algo.filtering.log.start_activities.start_activities_filter module#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py 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 General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

class pm4py.algo.filtering.log.start_activities.start_activities_filter.Parameters(value)[source]#

Bases: Enum

An enumeration.

ACTIVITY_KEY = 'pm4py:param:activity_key'#
DECREASING_FACTOR = 'decreasingFactor'#
POSITIVE = 'positive'#
pm4py.algo.filtering.log.start_activities.start_activities_filter.apply(log: EventLog, admitted_start_activities: List[str], parameters: Optional[Dict[Union[str, Parameters], Any]] = None) EventLog[source]#

Filter the log on the specified start activities

Parameters#

log

log

admitted_start_activities

Admitted start activities

parameters

Algorithm parameters

Returns#

filtered_log

Filtered log

pm4py.algo.filtering.log.start_activities.start_activities_filter.filter_log_by_start_activities(start_activities, variants, vc, threshold, activity_key='concept:name')[source]#

Keep only variants of the log with a start activity which number of occurrences is above the threshold

Parameters#

start_activities

Dictionary of start attributes associated with their count

variants

(If specified) Dictionary with variant as the key and the list of traces as the value

vc

List of variant names along with their count

threshold

Cutting threshold (remove variants having start attributes which number of occurrences is below the threshold

activity_key

(If specified) Specify the activity key in the log (default concept:name)

Returns#

filtered_log

Filtered log