totilas / DPrandomwalk

code for the paper Differentially Private Decentralized Learning with Random Walks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Differentially Private Decentralized Learning with Random Walks

Here is the code used to generate figures.

Requirements

numpy networkx matplotlib tqdm scipy

for the houses part: sklearn Pathlib typer

Datasets

The Facebook ego graph can be downloaded here: https://snap.stanford.edu/data/ego-Facebook.html and should be placed in a folder named 'facebook' in the project folder. The Housing dataset should be downloaded via the 'data' script, but can be manually retrieved there in case of problem: https://www.openml.org/d/823

Organization

  • The file synthemuffcomparison.py enables to reproduce figure 1
  • The folder Houses enable to reproduce the experiments of Figure 2
  • The files south.py and fb.py enable to reproduce Figure 3

The code is adapted from the code of Muffliato: Peer-to-Peer Privacy Amplification for Decentralized Optimization and Averaging..

About

code for the paper Differentially Private Decentralized Learning with Random Walks


Languages

Language:Python 100.0%