Skip to main content

It derives new events based on rules provided as inputs.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

derive_event_pm4py-1.0.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

derive_event_pm4py-1.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file derive_event_pm4py-1.0.1.tar.gz.

File metadata

  • Download URL: derive_event_pm4py-1.0.1.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for derive_event_pm4py-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d59324e6e273631f5d334102e703d9ebd4710aa1af309ec256afeb4a50c0dee4
MD5 0bc6a112071fc99c38f1055dc74c8cb1
BLAKE2b-256 4b75a3699d1431fec54fe215ee51e634bf095d59e0822d9969b8eb3d90423b48

See more details on using hashes here.

Provenance

File details

Details for the file derive_event_pm4py-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: derive_event_pm4py-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for derive_event_pm4py-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5246e18e59672ba374114b03a8ae1fb8e85f0dc843a9662f3b5d50a4aaa70af6
MD5 af11b693a0bdb359cfb794355fc25de4
BLAKE2b-256 19c2dafe4833f11b96f96369b533210c8070275a7bfd03903d9352724180be11

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page