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

Added new experiments

parent ed5d47e9
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
# Path to current script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TOOLS=$SCRIPT_DIR/$(cat 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 SEED in 1 2 3; do
setup/meta.py \
--results-directory $SCRIPT_DIR/tmp \
--seed $SEED |
setup/dataset.py \
--name mnist \
--train-examples-per-class 4943 5607 4926 5121 4860 4529 4960 5237 4877 4940 |
setup/nodes/google-fl.py \
--name 2-shards-uneq-classes \
--nb-nodes 1000 \
--local-shards 2 \
--shard-size 25 |
setup/topology/d_cliques/greedy_swap.py \
--interclique fully-connected \
--max-clique-size 10 \
--max-steps 1000 |
setup/model/linear.py |
simulate/algorithm/d_sgd.py \
--batch-size 13 \
--learning-momentum 0.0 \
--learning-rate 0.1 \
--clique-gradient |
simulate/logger.py \
--nb-processes 8 |
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 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 SEED in 1 2 3; do
setup/meta.py \
--results-directory $SCRIPT_DIR/tmp \
--seed $SEED |
setup/dataset.py \
--name mnist \
--train-examples-per-class 4500 4500 4500 4500 4500 4500 4500 4500 4500 4500 |
setup/nodes.py \
--name max-local-skew \
--nb-nodes 1000 \
--local-classes 1 \
--nodes-per-class 100 100 100 100 100 100 100 100 100 100 |
setup/topology/d_cliques/ideal.py \
--interclique fully-connected |
setup/model/linear.py |
simulate/algorithm/d_sgd.py \
--batch-size 13 \
--learning-momentum 0.0 \
--learning-rate 0.1 \
--clique-gradient |
simulate/logger.py \
--nb-processes 8 |
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 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 C_GRAD in '--clique-gradient' ''; do
for SEED in 1 2 3; do
setup/meta.py \
--results-directory $SCRIPT_DIR/tmp \
--seed $SEED |
setup/dataset.py \
--name mnist \
--train-examples-per-class 4900 5600 4900 5100 4800 4500 4900 5200 4800 4900 |
setup/nodes/google-fl.py \
--name 2-shards-uneq-classes \
--nb-nodes 100 \
--local-shards 2 \
--shard-size 248 |
setup/topology/d_cliques/random_cliques.py \
--interclique fully-connected \
--max-clique-size 10 |
setup/model/linear.py |
simulate/algorithm/d_sgd.py \
--batch-size 128 \
--learning-momentum 0.0 \
--learning-rate 0.1 \
$C_GRAD |
simulate/logger.py \
--nb-processes 8 |
simulate/run.py \
--nb-epochs 100;
done;
done
#!/usr/bin/env bash
# Path to current script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TOOLS=$SCRIPT_DIR/$(cat 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 C_GRAD in '--clique-gradient' ''; do
for SEED in 1 2 3; do
setup/meta.py \
--results-directory $SCRIPT_DIR/tmp \
--seed $SEED |
setup/dataset.py \
--name mnist \
--train-examples-per-class 4500 4500 4500 4500 4500 4500 4500 4500 4500 4500 |
setup/nodes.py \
--name max-local-skew \
--nb-nodes 100 \
--local-classes 1 \
--nodes-per-class 10 10 10 10 10 10 10 10 10 10 |
setup/topology/d_cliques/random_cliques.py \
--interclique fully-connected \
--max-clique-size 10 |
setup/model/linear.py |
simulate/algorithm/d_sgd.py \
--batch-size 128 \
--learning-momentum 0.0 \
--learning-rate 0.1 \
$C_GRAD |
simulate/logger.py \
--nb-processes 8 |
simulate/run.py \
--nb-epochs 100;
done;
done
#!/usr/bin/env bash
# Path to current script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TOOLS=$SCRIPT_DIR/$(cat 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 U_GRAD in '--unbiased-gradient' ''; do
for SEED in 1 2 3; do
setup/meta.py \
--results-directory $SCRIPT_DIR/tmp \
--seed $SEED |
setup/dataset.py \
--name mnist \
--train-examples-per-class 4900 5600 4900 5100 4800 4500 4900 5200 4800 4900 |
setup/nodes/google-fl.py \
--name 2-shards-uneq-classes \
--nb-nodes 100 \
--local-shards 2 \
--shard-size 248 |
setup/topology/greedy_neighbourhood_swap.py \
--nb-neighbours 10 \
--nb-passes 50 |
setup/model/linear.py |
simulate/algorithm/d_sgd.py \
--batch-size 128 \
--learning-momentum 0.0 \
--learning-rate 0.1 \
$U_GRAD |
simulate/logger.py \
--nb-processes 8 |
simulate/run.py \
--nb-epochs 100;
done;
done
#!/usr/bin/env bash
# Path to current script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TOOLS=$SCRIPT_DIR/$(cat 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 U_GRAD in '--unbiased-gradient' ''; do
for SEED in 1 2 3; do
setup/meta.py \
--results-directory $SCRIPT_DIR/tmp \
--seed $SEED |
setup/dataset.py \
--name mnist \
--train-examples-per-class 4500 4500 4500 4500 4500 4500 4500 4500 4500 4500 |
setup/nodes/google-fl.py \
--name max-local-skew \
--nb-nodes 100 \
--local-classes 1 \
--nodes-per-class 10 10 10 10 10 10 10 10 10 10 |
setup/topology/greedy_neighbourhood_swap.py \
--nb-neighbours 10 \
--nb-passes 50 |
setup/model/linear.py |
simulate/algorithm/d_sgd.py \
--batch-size 128 \
--learning-momentum 0.0 \
--learning-rate 0.1 \
$U_GRAD |
simulate/logger.py \
--nb-processes 8 |
simulate/run.py \
--nb-epochs 100;
done;
done
#!/usr/bin/env bash
# Path to current script
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TOOLS=$SCRIPT_DIR/$(cat 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 SEED in 1 2 3; do
setup/meta.py \
--results-directory $SCRIPT_DIR/tmp \
--seed $SEED |
setup/dataset.py \
--name mnist \
--train-examples-per-class 4900 5600 4900 5100 4800 4500 4900 5200 4800 4900 |
setup/nodes/google-fl.py \
--name 2-shards-uneq-classes \
--nb-nodes 100 \
--local-shards 2 \
--shard-size 248 |
setup/topology/random_graph.py \
--nb-neighbours 10 |
setup/model/linear.py |
simulate/algorithm/d_sgd.py \
--batch-size 128 \
--learning-momentum 0.0 \
--learning-rate 0.1 |
simulate/logger.py \
--nb-processes 8 |
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 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 SEED in 1 2 3; do
setup/meta.py \
--results-directory $SCRIPT_DIR/tmp \
--seed $SEED |
setup/dataset.py \
--name mnist \
--train-examples-per-class 4500 4500 4500 4500 4500 4500 4500 4500 4500 4500 |
setup/nodes.py \
--name max-local-skew \
--nb-nodes 100 \
--local-classes 1 \
--nodes-per-class 10 10 10 10 10 10 10 10 10 10 |
setup/topology/random_graph.py \
--nb-neighbours 10 |
setup/model/linear.py |
simulate/algorithm/d_sgd.py \
--batch-size 128 \
--learning-momentum 0.0 \
--learning-rate 0.1 |
simulate/logger.py \
--nb-processes 8 |
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