Skip to content

Latest commit

 

History

History
38 lines (14 loc) · 722 Bytes

README.md

File metadata and controls

38 lines (14 loc) · 722 Bytes

Guide of Using Code

The code is implemented using Python3.7. The descriptions of files are in the following:

HDG.py: HDG algorithm

TDG.py: TDG algorithm

choose_granularity.py: set the granularities g1 and g2 by guideline

consistency_method.py: norm_sub

estimate_method.py: weighted update

frequecy_oracle.py: LDP categorical frequency oracles including OUE and OLH

generate_query.py: generate the range queries

grid_generate.py: construct grids

parameter_setting.py: define the papameters

utility_metric.py: calculate MAE

The "example_main.py" is used to illustrate how to run TDG and HDG algorithm.