Skip to content

Commit

Permalink
add usage
Browse files Browse the repository at this point in the history
  • Loading branch information
FumiyukiKato committed Mar 23, 2023
1 parent 47ef949 commit 9f9c543
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/eval-ldp-sgd.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
"""
USAGE:
LDP-FL and Shuffle FL are based on the paper
Úlfar Erlingsson, Vitaly Feldman, Ilya Mironov, Ananth Raghunathan, Shuang Song, Kunal Talwar, and Abhradeep Thakurta. 2020. Encode, shuffle, analyze privacy revisited: Formalizations and empirical evaluation. arXiv preprint arXiv:2001.03618 (2020).
LDP-FL
as well as including Shuffle FL analysis
$ python src/eval-ldp-sgd.py --dp_kind=ldp --eps_local=2.0 --epochs=1500
CDP-FL (DP-FedSGD)
$ python src/eval-ldp-sgd.py --dp_kind=cdp --sigma=50.0 --global_lr=1.0 --epochs=500
Plain FL (FedSGD)
$ python src/eval-ldp-sgd.py --dp_kind=nodp --global_lr=0.1 --epochs=300
"""

import numpy as np
import torch
import torch.nn as nn
Expand Down

0 comments on commit 9f9c543

Please sign in to comment.