Skip to main content

Prioritization Discovery

ci version

Python algorithm to discover, from an event log, the case priority levels and the rules that classify a process case in its corresponding level. For example, the cases of a process can belong to three priority levels (low, medium, high), where the activity instances of cases with high priority are executed before than activity instances of cases with low priority (when both of them are enabled at the same time).

Example of use

import pandas as pd

from prioritization_discovery.config import DEFAULT_CSV_IDS
from prioritization_discovery.discovery import discover_priority_rules

# Read event log
event_log = pd.read_csv("path_to_event_log.csv")
event_log[DEFAULT_CSV_IDS.enabled_time] = pd.to_datetime(event_log[DEFAULT_CSV_IDS.enabled_time], utc=True)
event_log[DEFAULT_CSV_IDS.start_time] = pd.to_datetime(event_log[DEFAULT_CSV_IDS.start_time], utc=True)
event_log[DEFAULT_CSV_IDS.end_time] = pd.to_datetime(event_log[DEFAULT_CSV_IDS.end_time], utc=True)
# Get priority levels and their rules
case_attributes = discover_priority_rules(
    event_log=event_log,
    attributes=['loan_amount', 'client_type']  # Case attributes to consider in the rule discovery
)

To see a more detailed example of use, and the format of the output, you can check this test file.

No enabled time available

To identify which activity instances have been prioritized over others, the information of the enabled time has to be available in the event log. In case it is not available, consider using this Python library to estimate them.

Metadata

Release files for prioritization-discovery 0.4.4

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

Source distribution (sdist)

Source distribution for prioritization-discovery 0.4.4
File Size Uploaded Provenance Actions
prioritization_discovery-0.4.4.tar.gz 10.5 kB Without provenance Details for prioritization_discovery-0.4.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prioritization-discovery 0.4.4
File Interpreter ABI Platform Actions
prioritization_discovery-0.4.4-py3-none-any.whl Python 3 none any Details for prioritization_discovery-0.4.4-py3-none-any.whl

Total release size: 22.6 kB

Release files / prioritization_discovery-0.4.4.tar.gz

Download URL prioritization_discovery-0.4.4.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6943413e9911b001ec2bf55b7619574307d21eeb8e498c615eb186c3de390ad6
BLAKE2b-256 checksum
How to use checksums
93c069c641249dfcaa86a3e4aaa637a0a6cccf6db9bc5eab540ac38ef67efc1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / prioritization_discovery-0.4.4-py3-none-any.whl

Download URL prioritization_discovery-0.4.4-py3-none-any.whl
Size 12.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
121bd21d5b108b097dab9e4573193abb1afdb10ca41468339f475ca5eb957d0a
BLAKE2b-256 checksum
How to use checksums
0cfb09c4d0b598b829e0105defd849ed9bd07fee6229284249236d5e16c679e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Security for prioritization-discovery 0.4.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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