https://github.com/dito97/kapra
Data Protection and Privacy (90538) final project at UniGe
https://github.com/dito97/kapra
anonymization pattern time-series
Last synced: about 1 year ago
JSON representation
Data Protection and Privacy (90538) final project at UniGe
- Host: GitHub
- URL: https://github.com/dito97/kapra
- Owner: DiTo97
- License: apache-2.0
- Created: 2020-11-25T09:24:14.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-14T19:50:09.000Z (about 5 years ago)
- Last Synced: 2025-04-03T12:56:49.973Z (about 1 year ago)
- Topics: anonymization, pattern, time-series
- Language: Python
- Homepage:
- Size: 8.91 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KAPRA
Implementation of the [KAPRA](https://ieeexplore.ieee.org/abstract/document/6095556) algorithm for (k, P)-anonymity with l-diversity.
**Authors:** F. Minutoli, M. Ghirardelli, S. Bagnato, and G. Losapio.
```console
,--._,--.
,' ,' ,-`.
(`-.__ / ,' /
`. `--' \__,--'-.
`--/ ,-. ______/
(o-. ,o- /
`. ; \
|: \
,'` , \
(o o , --' :
\--','. ;
`;; : /
;' ; ,' ,'
,',' : '
\ \ :
`
```
## Dataset
All datasets are accessible in the *data* folder.
- [Weekly sales transactions](https://archive.ics.uci.edu/ml/datasets/sales_transactions_dataset_weekly) from UCI.
- [News popularity in social media platforms](https://archive.ics.uci.edu/ml/datasets/News+Popularity+in+Multiple+Social+Media+Platforms) from UCI.
## Folder structure
## Usage
```console
[*] Usage: python k_P_anonymity.py
```
### Parameters explanation
- `algorithm`, the (k, P)-anonymity implementation: naive or KAPRA;
- `k_value`, the k-anonymity constraint value;
- `P_value`, the P-anonymity constraint value on pattern sub-groups;
- `paa_value`, the piece-wise aggregate approximation (PAA) value to control the dimensionality of PRs;
- `l_value`, the l-diversity constraint value.