How yashotharas/ldp_energy works
This repository implements experiments in local differential privacy for smart-meter energy data: it loads or synthesizes appliance readings, encodes energy levels, applies privacy-budget allocation and randomized response, and evaluates utility. The README also documents adaptive budget division and normal, skewed, and uniform synthetic data. The graph preserves these capabilities and the Laplacian benchmark. Some post-processing and benchmark modules were not shown in detail, so their internal connections are omitted rather than inferred.
Main entry points: Budget_division.py Adaptive budget division · Preprocessing_and_encoding.py Energy encoding · Normal_distribution.py Normal data experiment · Uniform_distribution.py Uniform data experiment
Components 19
Energy data
- IDEAL data loading
LDPEnergyCodes/DataLoading/Data_loading.py - Data augmentation
LDPEnergyCodes/DataLoading/Data_augmentation.py - Energy encoding
LDPEnergyCodes/Preprocessing_and_encoding.py
Privacy pipeline
- Single-run experiment
LDPEnergyCodes/main.py - Iterative experiment
LDPEnergyCodes/main_with_iteration.py - Adaptive budget division
LDPEnergyCodes/Budget_division.py - LDP randomization
LDPEnergyCodes/Randomiser.py - Encoding and metrics helpers
LDPEnergyCodes/Helper.py
Evaluation
- Benchmark experiment
LDPEnergyCodes/main_benchmarking.py - Application post-processing
LDPEnergyCodes/PostProcessing/Postprocessing_application_level.py - Statistical analysis
LDPEnergyCodes/PostProcessing/Statistical_analysis.py - Laplacian mechanism
Benchmarking/LaplacianLDP.py - Concurrent benchmarks
Benchmarking/concurrent_benchmarking.py
Synthetic data
- Normal data experiment
LDPEnergyCodes/SyntheticDatasetCreation/Normal_distribution.py - Skewed data experiment
LDPEnergyCodes/SyntheticDatasetCreation/Skewed_distribution.py - Uniform data experiment
LDPEnergyCodes/SyntheticDatasetCreation/Uniform_distribution.py - IDEAL-based synthesis
LDPEnergyCodes/SyntheticDatasetCreation/Real_sysnthetic_data_processing.py - Distribution synthesizer
LDPEnergyCodes/SyntheticDatasetCreation/Synthesiser.py
Other components
- Experimenter
Connections 23
- Experimenter → Single-run experiment: runs
README.md - Experimenter → Benchmark experiment: runs
README.md - Single-run experiment → IDEAL data loading: loads data
LDPEnergyCodes/main.py - Single-run experiment → Energy encoding: encodes readings
LDPEnergyCodes/main.py - Single-run experiment → Adaptive budget division: allocates budget
LDPEnergyCodes/main.py - Iterative experiment → IDEAL data loading: loads data
LDPEnergyCodes/main_with_iteration.py - Iterative experiment → Energy encoding: encodes readings
LDPEnergyCodes/main_with_iteration.py - Iterative experiment → Adaptive budget division: allocates budget
LDPEnergyCodes/main_with_iteration.py - Benchmark experiment → Laplacian mechanism: applies noise
LDPEnergyCodes/main_benchmarking.py - IDEAL data loading → Data augmentation: augments users
LDPEnergyCodes/DataLoading/Data_loading.py - Adaptive budget division → LDP randomization: perturbs bits
LDPEnergyCodes/Budget_division.py - Adaptive budget division → Encoding and metrics helpers: measures distance
LDPEnergyCodes/Budget_division.py - Normal data experiment → Distribution synthesizer: generates data
LDPEnergyCodes/SyntheticDatasetCreation/Normal_distribution.py - Normal data experiment → Energy encoding: encodes readings
LDPEnergyCodes/SyntheticDatasetCreation/Normal_distribution.py - Normal data experiment → Adaptive budget division: allocates budget
LDPEnergyCodes/SyntheticDatasetCreation/Normal_distribution.py - Normal data experiment → Encoding and metrics helpers: decodes levels
LDPEnergyCodes/SyntheticDatasetCreation/Normal_distribution.py - Uniform data experiment → Distribution synthesizer: generates data
LDPEnergyCodes/SyntheticDatasetCreation/Uniform_distribution.py - Uniform data experiment → Energy encoding: encodes readings
LDPEnergyCodes/SyntheticDatasetCreation/Uniform_distribution.py - Uniform data experiment → Adaptive budget division: allocates budget
LDPEnergyCodes/SyntheticDatasetCreation/Uniform_distribution.py - Uniform data experiment → Encoding and metrics helpers: uses helpers
LDPEnergyCodes/SyntheticDatasetCreation/Uniform_distribution.py - IDEAL-based synthesis → Energy encoding: encodes readings
LDPEnergyCodes/SyntheticDatasetCreation/Real_sysnthetic_data_processing.py - IDEAL-based synthesis → Adaptive budget division: allocates budget
LDPEnergyCodes/SyntheticDatasetCreation/Real_sysnthetic_data_processing.py - IDEAL-based synthesis → Encoding and metrics helpers: uses helpers
LDPEnergyCodes/SyntheticDatasetCreation/Real_sysnthetic_data_processing.py