TLKC-privacy model for process mining
Project description
Introduction
This project implements the extended version of 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-ext
Usage
from p_tlkc_privacy_ext.privacyPreserving import privacyPreserving
import os
event_log = "running_example.xes"
L = [3]
K = [2]
C = [1]
alpha = 0.5 #privacy coefficent
beta = 0.5 #utility coefficent
sensitive_att = []
T = ["minutes"]
cont = []
bk_type = "set" #set, multiset, sequence, relative
trace_attributes = ['concept:name']
life_cycle = ['complete', '', 'COMPLETE'] #these life cycles are applied only when all_lif_cycle = False
all_life_cycle = True #when life cycle is in trace attributes then all_life_cycle has to be True
if not os.path.exists("./xes_results"):
os.makedirs("./xes_results")
pa_log_dir = "xes_results"
pa_log_name = event_log[:-4]
pp = privacyPreserving(event_log)
result = pp.apply(T, L, K, C, sensitive_att, cont, bk_type, trace_attributes, life_cycle, all_life_cycle,alpha, beta, pa_log_dir, pa_log_name, False)
print(result)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
p_tlkc_privacy_ext-0.0.3.tar.gz
(13.5 kB
view hashes)
Built Distribution
Close
Hashes for p_tlkc_privacy_ext-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45a36d941b09f4bc9d276cd4d6c78aaa880c23554660ed6f9c7a5d90bc53ecf1 |
|
MD5 | a60a2403665cd49649468bb81cee37ea |
|
BLAKE2b-256 | 625c09a48e75017cea0ac8f13d8fd4e15417dbdaaf81f2b115ce5ca5a9453bed |