Skip to main content

Derive Events using rules

Given an log path and, set of rules, they are channelised to event derivation algorithm. Event derivation algorithm is responsible for building the transformed log. Evaluation metrics and log statistics for both, original log and transformed log are caomputed and returned.

Call apply_trans(logpath, activities, attributes, predicates, thresholds, location, new_activities, window, order_flag, visual_flag) It takes as input

    1. logpath (str): Path of event log
    2. activities (List of str): List of activities in rule
    3. attributes (List of str): List of attributes in rule
    4. predicates (List of str): List of predicates in rule
    5. thresholds (List of float or str): List of thresholds in rule
    6. location (List of str): List of locations for derived events in rule
    7. new_activities (List of str): List of derived event's identifiers
    8. window (List of int): List of time windows in rule
    9. order_flag (bool): Flag to denote if order of events in log is considered
    10.visual_flag (bool): Flag to denote if activities in rule should be retained

The resulting transformed event log can be found in the same location as that of original log with same name suffixed with "modified" keyword.

Installation

pip install derive_event_pm4py

How to use it?

Install derive_event_pm4py package. Following, from derive_event import apply_trans.

    Example: 
    path = "<path>\<file>.xes"
    act = [["E", "F"], ["E", "G"], ["E", "H"]]
    attr = [["additional", "additional"], ["additional", "additional"], ["additional", "additional"]]
    pred = [["LT", "LT"], ["LT", "GT"], ["LT", "GT"]]
    thres = [[100, 50], [100, 40], [100, 50]]
    loc = ["end", "end", "end"]
    new_act = ["EF", "EG", "EH"]
    window = [432000, 432000, 432000]
    order = [False, False, False]
    visual = False
    apply_trans(path, act, attr, pred, thres, loc, new_act, window, order, visual)

License

Copyright (c) 2020 Ajay Pandi

This repository is licensed under the MIT license. See LICENSE for details.

Metadata

Release files for derive-event-pm4py 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for derive-event-pm4py 1.0.0
File Size Uploaded
derive_event_pm4py-1.0.0.tar.gz 7.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for derive-event-pm4py 1.0.0
File Interpreter ABI Platform
derive_event_pm4py-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.8 kB

Release files / derive_event_pm4py-1.0.0.tar.gz

Download URL derive_event_pm4py-1.0.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6ad140176277feb18083f1772383c456a1317a9b2ca8f1e99f2941c9c112e5c2
BLAKE2b-256 checksum
How to use checksums
1c998b307c7aca2e9b465983be151f7c8838911d28bab0923e52623a5772f4ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.4

Release files / derive_event_pm4py-1.0.0-py3-none-any.whl

Download URL derive_event_pm4py-1.0.0-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ee11a353bb142388dac9d9c2a272cd22bc34b81a16b933572773175262a25e6
BLAKE2b-256 checksum
How to use checksums
2c5c21e0408fdef2327421efbc4956d07f16ee0d821e7867eba27d06b644eaf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.4

Release history Release notifications | RSS feed

1.0.1

2 release files

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page