Skip to content

YangJianyu-bupt/privmdr

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages