Metadata-Version: 2.1
Name: p-tlkc-privacy-ext
Version: 0.0.3
Summary: TLKC-privacy model for process mining
Home-page: https://github.com/m4jidRafiei/TLKC-Privacy-Ext
Author: Majid Rafiei
Author-email: majid.rafiei@pads.rwth-aachen.de
License: UNKNOWN
Project-URL: Source, https://github.com/m4jidRafiei/TLKC-Privacy-Ext
Description: ## Introduction
        This project implements the extended version of the TLKC-privacy model proposed in the paper [TLKC-Privacy Model for Process Mining](https://www.researchgate.net/publication/340261780_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:
        
        ```shell
        pip install p-tlkc-privacy-ext
        ```
        
        ## Usage
        
        ```python
        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)
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
