-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRUNME.sh
22 lines (22 loc) · 1.08 KB
/
RUNME.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
STRING="Downloading the MNIST-data set and creating clients"
echo $STRING
eval cd DiffPrivate_FedLearning
eval mkdir MNIST_original
eval cd MNIST_original
eval curl -O "http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz"
eval curl -O "http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz"
eval curl -O "http://yann.lecun.com/exdb/mnist/t10k-images-idx3-ubyte.gz"
eval curl -O "http://yann.lecun.com/exdb/mnist/t10k-labels-idx1-ubyte.gz"
eval gunzip train-images-idx3-ubyte.gz
eval gunzip train-labels-idx1-ubyte.gz
eval gunzip t10k-images-idx3-ubyte.gz
eval gunzip t10k-labels-idx1-ubyte.gz
eval cd ..
eval python Create_clients.py
STRING2="You can now run differentially private federated learning on the MNIST data set. Type python sample.py —-h for help"
echo $STRING2
STRING3="An example: …python sample.py —-N 100… would run differentially private federated learning on 100 clients for a privacy budget of (epsilon = 8, delta = 0.001)"
echo $STRING3
STINRG4="For more information on how to use the the functions please refer to their documentation"
echo $STRING4