Skip to content

Commit d465891

Browse files
Update README.md
1 parent 89bac79 commit d465891

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ However, we only allocated 4GB of RAM when submitting each of our jobs.
4949
## Requirements and Dependencies
5050
This code is written in Python and uses TensforFlow. To reproduce the environment with necessary dependencies needed for running of the code in this repo, we recommend that the users create a `conda` environment using the `environment.yml` YAML file that is provided in the repo. Assuming the conda management system is installed on the user's system, this can be done using the following:
5151

52-
```shell
52+
```
5353
$ conda env create -f environment.yml
5454
```
5555

@@ -62,7 +62,7 @@ The MNIST dataset we used in our experiments can be found in the `./data` direct
6262
# BRIDGE Experiments
6363
We performed decentralized learning using BRIDGE and some of its variants based on distributed learning screening methods, namely Median, Krum and Bulyan. To train the one-layer neural network on MNIST with BRIDGE or its variants, run the `dec_BRIDGE.py` script. When no screening method is selected, training is done with distributed gradient descent (DGD) without screening. Each Monte Carlo trial ran in about one hundred seconds on our machines for each of the screening methods.
6464

65-
```shell
65+
```
6666
usage: dec_BRIDGE.py [-h] [-b BYZANTINE] [-gb GOBYZANTINE]
6767
[-s {BRIDGE,Median,Krum,Bulyan}]
6868
monte_trial
@@ -88,12 +88,12 @@ optional arguments:
8888

8989
1) BRIDGE defending against at most two Byzantine nodes with no faulty nodes in the network (faultless setting).
9090

91-
```shell
91+
```
9292
$ python dec_BRIDGE.py 0 -b=2 -s=BRIDGE
9393
```
9494
2) BRIDGE defending against at most two Byzantine nodes with exactly two faulty nodes in the network (faulty setting).
9595

96-
```shell
96+
```
9797
$ python dec_BRIDGE.py 0 -b=2 -gb=True -s=BRIDGE
9898
```
9999

@@ -103,7 +103,7 @@ The user can run each of the possible screening methods ten times in parallel by
103103
# ByRDiE Experiments
104104
We performed decentralized learning using ByRDiE, both in the faultless setting and in the presence of actual Byzantine nodes. To train the one layer neural network on MNIST with ByRDiE, run the `dec_ByRDiE.py` script. Each Monte Carlo trial for ByRDiE ran in about two days on our machines.
105105

106-
```shell
106+
```
107107
usage: dec_ByRDiE.py [-h] [-b BYZANTINE] [-gb GOBYZANTINE] monte_trial
108108
109109
positional arguments:
@@ -123,13 +123,13 @@ optional arguments:
123123
## Examples
124124
1) ByRDiE defending against at most two Byzantine nodes with no faulty nodes in the network (faultless setting).
125125

126-
```shell
126+
```
127127
$ python dec_ByRDiE.py 0 -b=2
128128
```
129129

130130
2) ByRDiE defending against at most two Byzantine nodes with exactly two faulty nodes in the network (faulty setting).
131131

132-
```shell
132+
```
133133
$ python dec_ByRDiE.py 0 -b=2 -gb=True
134134
```
135135

0 commit comments

Comments
 (0)