-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgen_data.sh
More file actions
executable file
·34 lines (34 loc) · 2.25 KB
/
gen_data.sh
File metadata and controls
executable file
·34 lines (34 loc) · 2.25 KB
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
# echo "Generating data for $1 (Training for $2 steps)"
# echo "------------------------------------------------"
# echo "Generating variant without shield"
# python2 simulator.py $1/$1.png -t=$2 -o=0 -c=$1/$1_0 --num-steps=$3
echo "------------------------------------------------"
echo "Generating variant without shield and huge negative rewards"
python2 simulator.py $1/$1.png -t=$2 -o=3 -c=$1/$1_0_huge_neg --num-steps=$3 -p
# echo "------------------------------------------------"
# echo "Generating variant with only 1 action"
# python2 simulator.py $1/$1.png -t=$2 -o=1 -c=$1/$1_1 --num-steps=$3
# echo "------------------------------------------------"
# echo "Generating variant with 3 actions in ranking"
# python2 simulator.py $1/$1.png -t=$2 -o=3 -c=$1/$1_3 --num-steps=$3
# echo "------------------------------------------------"
# echo "Generating variant with only 1 action but negative rewards for unsafe ones"
# python2 simulator.py $1/$1.png -t=$2 -o=1 -c=$1/$1_1_neg_reward -n --num-steps=$3
# echo "------------------------------------------------"
# echo "Generating variant with 3 actions in ranking but negative rewards for unsafe ones"
# python2 simulator.py $1/$1.png -t=$2 -o=3 -c=$1/$1_3_neg_reward -n --num-steps=$3
# echo "------------------------------------------------"
# echo "Generating SARSA variant without shield"
# python2 simulator.py $1/$1.png -t=$2 -o=0 -c=$1/$1_0_sarsa --num-steps=$3 -r
# echo "------------------------------------------------"
# echo "Generating SARSA variant with only 1 action"
# python2 simulator.py $1/$1.png -t=$2 -o=1 -c=$1/$1_1_sarsa --num-steps=$3 -r
# echo "------------------------------------------------"
# echo "Generating SARSA variant with 3 actions in ranking"
# python2 simulator.py $1/$1.png -t=$2 -o=3 -c=$1/$1_3_sarsa --num-steps=$3 -r
# echo "------------------------------------------------"
# echo "Generating SARSA variant with only 1 action but negative rewards for unsafe ones"
# python2 simulator.py $1/$1.png -t=$2 -o=1 -c=$1/$1_1_neg_reward_sarsa -n --num-steps=$3 -r
# echo "------------------------------------------------"
# echo "Generating SARSA variant with 3 actions in ranking but negative rewards for unsafe ones"
# python2 simulator.py $1/$1.png -t=$2 -o=3 -c=$1/$1_3_neg_reward_sarsa -n --num-steps=$3 -r