Skip to main content

Compute in python entropy for 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 for 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.2.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.2-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pmentropy-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 11cee8586d0baedab63bab7e5bbed8c508b544ed573d4857b32151ba0e48629f
MD5 eab231db937a76e2f0b1ba70cf0dcf0b
BLAKE2b-256 05fa5cd11f9cdbf01cdc86e75aba76a77190d0075e3e898c1c7e5895091a4cac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pmentropy-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97d1ad8d4498ea2b59d6aee401bceaed52538585c735005885c8f674ec0645f9
MD5 a4b280487e4ebcea6f007d7fcd91929c
BLAKE2b-256 da6706d566ea8008cbf38cfdd19c4547d7b68cd3bf8000013c9c3ac131994986

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