Skip to content
Snippets Groups Projects
Commit 22fccc14 authored by Erick Lavoie's avatar Erick Lavoie
Browse files

Added missing experiments and --clique-gradient option

parent 184857cd
No related branches found
No related tags found
No related merge requests found
...@@ -30,10 +30,11 @@ for MS in 5 10 20; do ...@@ -30,10 +30,11 @@ for MS in 5 10 20; do
simulate/algorithm/d_sgd.py \ simulate/algorithm/d_sgd.py \
--batch-size 20 \ --batch-size 20 \
--learning-momentum 0.9 \ --learning-momentum 0.9 \
--learning-rate 0.002 | --learning-rate 0.002 \
--clique-gradient |
simulate/logger.py \ simulate/logger.py \
--accuracy-logging-interval 10\ --accuracy-logging-interval 10\
--nb-processes 8 | --nb-processes 4 |
simulate/run.py \ simulate/run.py \
--nb-epochs 100; --nb-epochs 100;
done done
...@@ -30,10 +30,11 @@ for MS in 5 10 20; do ...@@ -30,10 +30,11 @@ for MS in 5 10 20; do
simulate/algorithm/d_sgd.py \ simulate/algorithm/d_sgd.py \
--batch-size 20 \ --batch-size 20 \
--learning-momentum 0.9 \ --learning-momentum 0.9 \
--learning-rate 0.002 | --learning-rate 0.002 \
--clique-gradient |
simulate/logger.py \ simulate/logger.py \
--accuracy-logging-interval 10\ --accuracy-logging-interval 10\
--nb-processes 8 | --nb-processes 4 |
simulate/run.py \ simulate/run.py \
--nb-epochs 100; --nb-epochs 100;
done done
...@@ -30,6 +30,6 @@ simulate/algorithm/d_sgd.py \ ...@@ -30,6 +30,6 @@ simulate/algorithm/d_sgd.py \
--learning-rate 0.002 | --learning-rate 0.002 |
simulate/logger.py \ simulate/logger.py \
--accuracy-logging-interval 10\ --accuracy-logging-interval 10\
--nb-processes 8 | --nb-processes 4 |
simulate/run.py \ simulate/run.py \
--nb-epochs 100 --nb-epochs 100
#!/usr/bin/env bash
# Path to current script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TOOLS=$SCRIPT_DIR/../../../../../$(cat $SCRIPT_DIR/../../../../../toolspath); cd $TOOLS
# Add current working directory to executable namespace
export PATH=$PATH:$TOOLS
# Setup root directory for resolution of imports:
# the path of all local python libraries are relative to this
export PYTHONPATH=$TOOLS
# Each command outputs the run directory, which is then used
# by the next command to add parameters and generate information
# used by the simulator. For a list of available options for each
# command, run 'export PYTHONPATH=.; <command> --help'.
for MS in 5 10 20; do
setup/meta.py \
--results-directory $SCRIPT_DIR/all \
--seed 1 |
setup/dataset.py \
--name mnist |
setup/nodes/google-fl.py \
--nb-nodes 100 \
--local-shards 2 \
--shard-size 250 |
setup/topology/d_cliques/random-cliques.py \
--interclique fully-connected \
--max-clique-size $MS |
setup/model/linear.py |
simulate/algorithm/d_sgd.py \
--batch-size 125 \
--learning-momentum 0.0 \
--learning-rate 0.1 \
--clique-gradient |
simulate/logger.py \
--accuracy-logging-interval 10\
--nb-processes 2 |
simulate/run.py \
--nb-epochs 100;
done
#!/usr/bin/env bash
# Path to current script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TOOLS=$SCRIPT_DIR/../../../../../$(cat $SCRIPT_DIR/../../../../../toolspath); cd $TOOLS
# Add current working directory to executable namespace
export PATH=$PATH:$TOOLS
# Setup root directory for resolution of imports:
# the path of all local python libraries are relative to this
export PYTHONPATH=$TOOLS
# Each command outputs the run directory, which is then used
# by the next command to add parameters and generate information
# used by the simulator. For a list of available options for each
# command, run 'export PYTHONPATH=.; <command> --help'.
for MS in 5 10 20; do
setup/meta.py \
--results-directory $SCRIPT_DIR/all \
--seed 1 |
setup/dataset.py \
--name mnist |
setup/nodes/google-fl.py \
--nb-nodes 100 \
--local-shards 2 \
--shard-size 250 |
setup/topology/d_cliques/random-cliques.py \
--interclique ring \
--max-clique-size $MS |
setup/model/linear.py |
simulate/algorithm/d_sgd.py \
--batch-size 125 \
--learning-momentum 0.0 \
--learning-rate 0.1 \
--clique-gradient |
simulate/logger.py \
--accuracy-logging-interval 10\
--nb-processes 2 |
simulate/run.py \
--nb-epochs 100;
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment