Skip to main content

Compute in python entropy from process mining describe in Back, C.O., Debois, S. & Slaats, T. Entropy as a Measure of Log Variability. J Data Semant 8, 129–156 (2019). https://doi.org/10.1007/s13740-019-00105-3 (https://rdcu.be/dJMwH)

Project description

PMEventropy

Compute in python entropy from process mining describe in Back, C.O., Debois, S. & Slaats, T. Entropy as a Measure of Log Variability. J Data Semant 8, 129–156 (2019). https://doi.org/10.1007/s13740-019-00105-3 (the article)

This project is inspired by https://github.com/backco/eventropy

Installation

pip install pmentropy

Get started

First import the XES file

import pmentropy
logs = pmentropy.read_file("path", flatten=False)

Then compute an entropy

entropy1 = pmentropy.kNN_entropy(logs, k=3, p=2)
entropy2 = pmentropy.global_block_entropy(logs k=3, p=2)

Documentation

Parse file

  • read_file(file_path: str, flatten=False)

Entropy

  • trace_entropy(logs)
  • prefix_entropy(logs)
  • unique_trace(logs)
  • k_block_entropy(logs, k: int)
  • global_block_entropy(logs)
  • kL_entropy(logs, p: int)
  • kNN_entropy(logs, k: int, p: int)
  • lempel_ziv_entropy_rate(logs)
  • k_block_entropy_rate_ratio(logs, c)
  • k_block_entropy_rate_diff(logs, c)
  • unique_trace(logs)

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

pmentropy-0.0.1.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pmentropy-0.0.1-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file pmentropy-0.0.1.tar.gz.

File metadata

  • Download URL: pmentropy-0.0.1.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for pmentropy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2c37c49db1618d5cbc627430d07ce7a70c184eb7a3c35eff47ed789765cd0937
MD5 d221a3494534961493d69a3b5841ebb6
BLAKE2b-256 88c9e0436eeaf7ce1d09680045d644926c2506dc9a7151f326f95b07a8beab21

See more details on using hashes here.

File details

Details for the file pmentropy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pmentropy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.12

File hashes

Hashes for pmentropy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b283cd83b94b1a4305edd90378436d2a7b41e324b2cb2e30ea379367d41d1cf
MD5 8a2fd523cd7ee1dd3035756931c19937
BLAKE2b-256 4176bd00be658c1c3b05df861647fdf3eb83de3b050e4b517410661da8a216ca

See more details on using hashes here.

Supported by

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