-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws_experiments.sh
executable file
·70 lines (52 loc) · 2.22 KB
/
aws_experiments.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
#!/bin/bash
# Parameters
probs=(0.3 0.5 0.7 0.9)
food_thresh=(0.1 0.3 0.5 0.7 0.9)
n_games=4000
data_path='aws_data'
# parameters for mini sample run
# n_games=3
# data_path='mini_aws_data'
rm $data_path/*
# # Create all data files
touch $data_path'/system_2.csv'
touch $data_path'/system_1.csv'
for i in "${probs[@]}"; do
touch $data_path'/random_choice_'$i'.csv'
done
touch $data_path'/proximity_agent.csv'
for i in "${food_thresh[@]}"; do
touch $data_path'/food_thresh_'$i'.csv'
done
echo "All data files created"
# Set system 2 baseline
python2 pacman.py -p System2Agent -n $n_games -l smallClassic -g DirectionalGhost -q --fname $data_path/system_2.csv
echo ">>>System 2 - Complete<<<"
# Set system 1 baseline
python2 pacman.py -p System1Agent -n $n_games -l smallClassic -g DirectionalGhost -q --fname $data_path/system_1.csv
echo ">>>System 1 - Complete<<<"
# Run proximity system
touch $data_path'/proximity_agent.csv'
python2 pacman.py -p ProximityAgent -n $n_games -l smallClassic -g DirectionalGhost -q --fname $data_path'/proximity_agent.csv'
echo ">>>Proximity Agent - Complete<<<"
touch $data_path'/proximity_agent.csv'
python2 pacman.py -p ProximityAgent -n $n_games -l smallClassic -g DirectionalGhost -q --fname $data_path'/proximity_agent.csv'
echo ">>>Proximity Agent - Complete<<<"
touch $data_path'/random_choice_0.1.csv'
python2 pacman.py -p RandomChoiceAgent -n 23 -l smallClassic -g DirectionalGhost -q -a prob_sys1=0.1 --fname $data_path'/random_choice_0.1.csv'
echo '>>Random choice 0.1 - Complete<<'
# Run multiple random probs
for i in "${probs[@]}"; do
touch $data_path'/random_choice_'$i'.csv'
echo "Running prob "$i
python2 pacman.py -p RandomChoiceAgent -n $n_games -l smallClassic -g DirectionalGhost -q -a prob_sys1=$i --fname $data_path'/random_choice_'$i'.csv'
echo '>>Random choice ('$i') - Complete<<'
done
# Run proximity plus food density system
for i in "${food_thresh[@]}"; do
touch $data_path'/food_thresh_'$i'.csv'
echo "Running food thre "$i
python2 pacman.py -p ProximityAndFoodAgent -n $n_games -l smallClassic -g DirectionalGhost -q -a food_thresh=$i --fname $data_path'/food_thresh_'$i'.csv'
echo '>>Proximity plus food ('$i') - Complete<<'
done
echo "All done"