{ "cells": [ { "cell_type": "markdown", "id": "5279e90c", "metadata": {}, "source": [ "# Log Filters\n", "\n", "The class `ProcessMiningTasks.LogFiltering.BasicFilters.BasicFilters` provides several functions to filter a log according to some input requirements. The `BasicFilters` class provides the following filtering functions:\n", "\n", "1. `filter_time_range_contained` that filters a log on a time interval.\n", "2. `filter_case_performance` that filters the log by a range of minimum performance and maximum performance, which is the duration of a case.\n", "3. `filter_start_activities` that filters all the activities that start with the specified set of start activities.\n", "4. `filter_end_activities` that filters all the activities that end with the specified set of end activities.\n", "5. `filter_variants_top_k` retains the top-k variants of the log.\n", "6. `filter_variants` filters a log by a specified set of variants.\n", "7. `filter_event_attribute_values` filters a log by the values of some event attribute. \n", "\n", "We first import such a class and the input `xes` log." ] }, { "cell_type": "code", "execution_count": 1, "id": "d276cc2d", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/usr/lib/python3/dist-packages/pyparsing.py:108: DeprecationWarning: module 'sre_constants' is deprecated\n", " import sre_constants\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "2ca14179bd234a93a9066402687f0fab", "version_major": 2, "version_minor": 0 }, "text/plain": [ "parsing log, completed traces :: 0%| | 0/1050 [00:00