p-tlkc-privacy

TLKC-privacy model for process mining


License
MIT
Install
pip install p-tlkc-privacy==0.0.14

Documentation

Introduction

This project implements the TLKC-privacy model proposed in the paper TLKC-Privacy Model for Process Mining.

Python package

The implementation has been published as a standard Python package. Use the following command to install the corresponding Python package:

pip install p-tlkc-privacy

Usage

from p_tlkc_privacy.privacyPreserving import privacyPreserving

event_log = "running_example.xes"

L = [2]
C = [1]
K = [1]
K2 = [0.1]
# sensitive = ['creator']
sensitive = []
T = ["minutes"]
cont = []
bk_type = "sequence" #set, multiset, sequence, relative

privacy_aware_log_dir = "xes_results"
privacy_aware_log_path = "test.xes"

pp = privacyPreserving(event_log, "example")
result = pp.apply(T, L, K, C, K2, sensitive, cont, bk_type, privacy_aware_log_dir, privacy_aware_log_path)

print(result)