Skip to content

daeyounghong/square-mechanism

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collecting Geospatial Data under Local Differential Privacy with Improving Frequency Estimation

Prerequisites

Configuration

Create config.json in the project directory and write the contents as follows:

{
  "data_dir": "data",
  "eps": 12.5,
  "grid_shape": [600, 300]
}
  • "data_dir": the path of a directory where dataset file and output files are stored.
  • "eps": the privacy budget used for running the algorithm.
  • "grid_shape": the grid shape used in the proposed postprocessing for frequency estimation based on convex optimization.

Preprocessing

  • Download Gowalla dataset
  • Place Gowalla data file loc-gowalla_totalCheckins.txt on data_dir of config.json
  • Run the following command:
    python prepro.py
    
  • The preprocessed file is stored in data_dir of config.json

Running the Algorithm

  • Run the following command:
    python run_alg.py
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published