Protocol to ensure the privatization of
Project description
Empowering learning analytics with state-of-the-art differential privacy. Your data stays meaningful — and safe. 🔒📊
Index
Project Description
Learning analytics involves collecting and analyzing data about learners to improve educational outcomes. However, this process raises concerns about the privacy of individual data. To address these concerns, this project implements differential privacy algorithms, which add controlled noise to data, ensuring individual privacy while maintaining the overall utility of the dataset. This approach aligns with recent advancements in safeguarding data privacy in learning analytics.
In this project, we explore a privacy protocol for sketching with privacy considerations. The steps it follow
- Setup
- Mask
- Agregation
- Estimation
Repository Structure
The repository is organized as follows:
Local_Privacy
┣ 📂 src
┣ ┣ 📂 clip_protocol
┃ ┃ ┣ 📂 count mean
┃ ┃ ┣ 📂 hadamard mean
┃ ┃ ┣ 📂 main
┃ ┃ ┃ ┣ setup.py
┃ ┃ ┃ ┣ mask.py
┃ ┃ ┃ ┣ agregate.py
┃ ┃ ┃ ┗ estimation.py
┃ ┗ ┗ 📂 utils
┗ 📂 tests
Online Execution
You can execute the code online using Google Colab. Google Colab sessions are intended for individual users and have limitations such as session timeouts after periods of inactivity and maximum session durations.
For single-user dataset scenarios, click this link to execute the method: Execute in Google Colab (Single-User)
Usage
These methods are included in PyPI as you can view here, and can be installed on your device with:
pip install clip-protocol
Once installed, you can execute the following commands to run the privacy adjustment methods.
Setup
Use the following command:
setup -d <dataset>
dataset: path to the input dataset (.xlsx) you want to setup for tests
Example:
setup -d /path/to/dataset.xlsx
Mask
Use the following command:
mask -d <dataset> -o <output>
dataset: Path to the input dataset you want to privatize.output: Path to where the privatized dataset will be saved.
The output variable is optional, if it is not needed to save the privatized data you can skip it
Agregation
Use the following command:
agregate
Estimation
Estimates the true frequencies from the aggregated privatized data. This command answers frequency queries based on the collected sketches.
estimate
Clear
Use this command when it is needed to delete all data saved from the previous steps.
clip_clear
Important Notes
- Ensure that the paths provided are correct, and that the necessary permissions are granted for writing to the output location.
- In the mask step, the output will be a new file
.csvcontaining the privatized data.
Documentation
The complete documentation for this project is available online. You can access it at the following link:
This documentation includes detailed explanations of the algorithms, methods, and the overall structure of the project.
👩💻 Authors
Marta Jones 💻 |
Anailys Hernandez 💡 |
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clip_protocol-2.2.5.tar.gz.
File metadata
- Download URL: clip_protocol-2.2.5.tar.gz
- Upload date:
- Size: 214.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17da2c88054381e7100930e530d27e409ab857ad9c460c309e97b86d57d1129c
|
|
| MD5 |
e71a4a36440d0cf5ee79e264b6131a57
|
|
| BLAKE2b-256 |
b6be8ede28393d01edd27ca1ecc2d2b394456a8167a9423ccef4c9838f6046d9
|
File details
Details for the file clip_protocol-2.2.5-py3-none-any.whl.
File metadata
- Download URL: clip_protocol-2.2.5-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
429f2e3c6a2a978960cc9b38f5bcbf277b78ea9742892d53bdc7df04618599dc
|
|
| MD5 |
812cfaf66292dc4bc00e541208457e16
|
|
| BLAKE2b-256 |
f487077bc0737e792a2646d7847e3a1f0779029c072a353c115935f23ab3d929
|