Case Attribute Discovery
Python package to discover case attributes from an event log and their value distribution (stochastic if discrete, probability distribution if continuous).
Example of use
import pandas as pd
from case_attribute_discovery.config import DEFAULT_CSV_IDS
from case_attribute_discovery.discovery import discover_case_attributes
# Read event log
event_log = pd.read_csv("path_to_event_log.csv")
# Simple call
case_attributes = discover_case_attributes(
event_log=event_log,
log_ids=DEFAULT_CSV_IDS
)
# Call specifying the columns to not take into account for case attribute analysis
case_attributes = discover_case_attributes(
event_log=event_log,
log_ids=DEFAULT_CSV_IDS,
avoid_columns=[
DEFAULT_CSV_IDS.case, DEFAULT_CSV_IDS.activity,
DEFAULT_CSV_IDS.start_time, DEFAULT_CSV_IDS.end_time
]
)
# Call specifying a confidence (or noise) threshold to allow a certain noise
# in the variability of the attribute along the trace:
# - For each trace, the confidence of the most frequent value is computed (i.e.
# the % of activity instances from that trace with that same value). For example,
# a trace with 8 activity instances with 'amount'=100 and 2 with 'amount'=150
# will have a confidence of 0.8.
# - The average confidence in all traces must be higher or equal to the specified
# one to consider that column a case attribute.
case_attributes = discover_case_attributes(
event_log=event_log,
log_ids=DEFAULT_CSV_IDS,
confidence_threshold=0.9
)
To see a more detailed example of use, and the format of the output, you can check this test file.
Metadata
Release files for case-attribute-discovery 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| case_attribute_discovery-0.1.8.tar.gz | 7.1 kB | Without provenance | Details for case_attribute_discovery-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| case_attribute_discovery-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for case_attribute_discovery-0.1.8-py3-none-any.whl |
Total release size: 15.2 kB
Release files / case_attribute_discovery-0.1.8.tar.gz
| Download URL | case_attribute_discovery-0.1.8.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a66ed6192c11a2c2407ab51312f2b7485cc4b9e6c7ea1c939c8d6d2fb443733f
|
|
BLAKE2b-256 checksum How to use checksums |
033628f2bda7d222c53f4b3c15be87db417b9716fe17d9ba047660228dfd4702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / case_attribute_discovery-0.1.8-py3-none-any.whl
| Download URL | case_attribute_discovery-0.1.8-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c66d8c3ae13e8e4ad2beb376cc60fe690e3f92944196c5dcc1ed57ece13f173
|
|
BLAKE2b-256 checksum How to use checksums |
1d9cf4fa18c43b52c87b9e340fab0c970e01a5c385b1d3c408cdb81afd193fd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Security for case-attribute-discovery 0.1.8
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.