-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_main.sh
executable file
·27 lines (19 loc) · 1004 Bytes
/
run_main.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
EXEC="python -u src/run_main.py --dataset fashion_mnist --strategy distinct --save --graph_def amb_iclr_10 --num_iters 100000 --num_samples 60"
log () { echo "$1"; }
run () { log ">> $1"; eval "$1"; }
# run () { log ">> $1"; eval "$1" & } # runs all sims in parallel, exhausts resources
exc () { run "$EXEC $1"; }
#ARGS="--func linear1 --consensus perfect --strag_dist equal --grad_combine Equal --opt"
#exc "$ARGS PG"
#exc "$ARGS PWG"
#exc "$ARGS PWG1"
#exc "$ARGS PW"
#exc "$ARGS DA"
#exc "--opt PWG --consensus rand_walk --strag_dist equal --grad_combine Equal --num_consensus_rounds 1 --num_iters 100000"
#exc "--opt gd --consensus perfect --strag_dist bern --strag_dist_param 0.8 --grad_combine Equal Proportional"
ARGS="--opt PWG --strag_dist bern --strag_dist_param 0.8 --grad_combine Equal Proportional"
exc "$ARGS --func linear1 --consensus perfect"
exc "$ARGS --func linear1 --consensus rand_walk --num_consensus_rounds 10"
exc "$ARGS --func relu1 --consensus perfect"
wait