-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest_algos_a2c.sh
executable file
·75 lines (65 loc) · 1.47 KB
/
test_algos_a2c.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/bash
export WANDB_MODE=dryrun
export WANDB_CONSOLE=off
export WANDB_SILENT=true
envs=(
POMDP-heavenhell-episodic-v0
POMDP-shopping_5-episodic-v1
PO-pos-CartPole-v1
gv_yaml/gv_four_rooms.7x7.yaml
gv_yaml/gv_memory.5x5.yaml
gv_yaml/gv_memory_four_rooms.7x7.yaml
"gv_yaml/gv_memory.5x5.yaml --latent-type GV-MEMORY"
"gv_yaml/gv_memory_four_rooms.7x7.yaml --latent-type GV-MEMORY"
extra-dectiger-v0
extra-cleaner-v0
extra-car-flag-v0
)
algos=(
a2c
asym-a2c
asym-a2c-state
)
args=(
--max-simulation-timesteps 500
--max-episode-timesteps 100
--simulation-num-episodes 2
# --truncated-histories
# --truncated-histories-n 10
# --normalize-hs-features
# --hs-features-dim 64
# --gv-state-model-type cnn
--gv-state-grid-model-type fc
--gv-state-representation-layers 2
--gv-observation-grid-model-type fc
--gv-observation-representation-layers 2
)
warnings="-W ignore"
# warnings=""
if [[ "$1" == "-v" ]]; then
shift
echo "running with standard output"
echo
silent=0
else
echo "running without standard output"
echo
silent=1
fi
debug=""
if [[ "$1" == "--debug" ]]; then
shift
echo "running with debugging"
echo
debug="-m ipdb -c continue"
silent=0
fi
for env in "${envs[@]}"; do
for algo in "${algos[@]}"; do
cmd="python $warnings $debug ./main_a2c.py $env $algo ${args[@]} $@"
echo $cmd
[[ "$silent" -eq 1 ]] && $cmd > /dev/null || $cmd
[[ "$?" -eq 0 ]] && echo "SUCCESS" || echo "FAIL"
done
done
exit 0