Skip to content

Data Protection and Privacy - final project, (k,P)-anonymity

Notifications You must be signed in to change notification settings

gajdusep/kp-anonymity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kp-anonymity

Data Protection and Privacy - final project, (k,P)-anonymity

Data

The folder data contains all the testing files.

Run

Examples of how to run the program:

Run single algorithm on a single file with possible visualization

pip3 install -r requirements.txt
python3 src/kp_anonymity.py -k 4 -p 2 -a top-down -i data/stock_data_reduced.csv -o data/anonymized_table.csv -s
python3 src/kp_anonymity.py -k 4 -p 2 -a bottom-up -i data/stock_data_reduced.csv -o data/anonymized_table.csv -s
python3 src/kp_anonymity.py -k 4 -p 2 -a kapra -i data/stock_data_reduced.csv -o data/anonymized_table.csv -s

Parameters:

  • -k, --k-anonymity - k value
  • -p, --p-anonymity - p value (cannot be greater than k)
  • -l, --PR-length - default 5, length of p-anonymity string
  • -m, --max-level - default 5, max level in p-anonymity
  • -s, --show-plots - if set, the envelopes will be visualized
  • -i, --input-file - path to the input file
  • -o, --output-file - path to the output file
  • -a, --algorithm - must be one of the following: top-down, bottom-up, kapra
  • -v, --verbose - if set, the verbose lines will be printed
  • -d, --debug - if set, the debug lines will be printed

Performance tests:

python3 src/performance_tests.py data/weekly_transactions_full.csv

About

Data Protection and Privacy - final project, (k,P)-anonymity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages