-
Notifications
You must be signed in to change notification settings - Fork 57
/
reinforcement_learning.sh
executable file
·213 lines (142 loc) · 4.08 KB
/
reinforcement_learning.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# source: https://gist.github.com/phatblat/1713458
# Save script's current directory
DIR=$(pwd)
set -e
set -u
set -x
echo "############################"
echo "# ImageFlow https://github.com/HamedMP/ImageFlow"
echo "############################"
echo ""
echo "Deep Learning library for Python. Convnets, recurrent neural networks, and more. Runs on Theano or TensorFlow."
echo ""
echo "MANUAL STEPS REQUIRED - FIRST FOLLOW tensorflow.sh instructions"
# install https://github.com/HamedMP/ImageFlow
cd ~/src/
if [ ! -d ~/src/ImageFlow ]
then
git clone https://github.com/HamedMP/ImageFlow.git
fi
cd ImageFlow
git pull
# sudo python setup.py install
python setup.py install --user
echo "############################"
echo "# Arcade Learning Environment arcadelearningenvironment.org"
echo "############################"
echo ""
echo "The Arcade Learning Environment (ALE) -- a platform for AI research.."
echo ""
sudo apt-get install -y libsdl1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev cmake
# install https://github.com/mgbellemare/Arcade-Learning-Environment
cd ~/src/
if [ ! -d ~/src/Arcade-Learning-Environment ]
then
git clone https://github.com/mgbellemare/Arcade-Learning-Environment.git
fi
cd Arcade-Learning-Environment
mkdir -p build && cd build
cmake -DUSE_SDL=ON -DUSE_RLGLUE=OFF -DBUILD_EXAMPLES=ON ..
make -j 22 install
cd ..
pip install --user
echo "############################"
echo "# Tensorpack https://github.com/ppwwyyxx/tensorpack"
echo "############################"
echo "To enable python code to support import tensorpack:"
echo "export PYTHONPATH=$PYTHONPATH:`readlink -f path/to/tensorpack`"
# install https://github.com/ppwwyyxx/tensorpack
cd ~/src/
if [ ! -d ~/src/tensorpack ]
then
git clone https://github.com/ppwwyyxx/tensorpack.git
fi
cd tensorpack
git pull
pip install --user -r requirements.txt
# optional requirements
pip install --user -r requirements-opt.txt
echo "############################"
echo "# keras-rl https://github.com/matthiasplappert/keras-rl"
echo "############################"
echo ""
echo ""
# install https://github.com/ppwwyyxx/tensorpack
cd ~/src/
if [ ! -d ~/src/keras-rl ]
then
git clone https://github.com/matthiasplappert/keras-rl.git
fi
cd keras-rl
git pull
# sudo python setup.py install
python setup.py install --user
echo "############################"
echo "# tflearn"
echo "############################"
echo ""
echo ""
# install https://github.com/tflearn/tflearn
cd ~/src/
if [ ! -d ~/src/tflearn ]
then
git clone https://github.com/tflearn/tflearn.git
fi
cd tflearn
git pull
sudo python setup.py install
echo "############################"
echo "# https://github.com/Itsukara/async_deep_reinforce"
echo "############################"
echo ""
echo ""
# install https://github.com/Itsukara/async_deep_reinforce
cd ~/src/
if [ ! -d ~/src/async_deep_reinforce ]
then
git clone https://github.com/Itsukara/async_deep_reinforce.git
fi
cd async_deep_reinforce
git pull
echo "############################"
echo "# https://github.com/yuyu2172/async-rl"
echo "############################"
echo ""
echo "fork of https://github.com/muupan/async-rl"
# install https://github.com/muupan/async-rl.git
cd ~/src/
if [ ! -d ~/src/async-rl ]
then
git clone https://github.com/yuyu2172/async-rl.git
fi
cd async-rl
git pull
sudo python setup.py install
echo "############################"
echo "# https://github.com/Zeta36/Asynchronous-Methods-for-Deep-Reinforcement-Learning"
echo "############################"
echo ""
echo ""
# install https://github.com/Zeta36/Asynchronous-Methods-for-Deep-Reinforcement-Learning
cd ~/src/
if [ ! -d ~/src/zeta36_a3c ]
then
git clone https://github.com/Zeta36/Asynchronous-Methods-for-Deep-Reinforcement-Learning.git zeta36_a3c
fi
cd zeta36_a3c
git pull
pip install pygame
echo "############################"
echo "# policy sketches"
echo "############################"
echo ""
echo "https://github.com/jacobandreas/psketch"
# install https://github.com/jacobandreas/psketch.git
cd ~/src/
if [ ! -d ~/src/psketch ]
then
git clone https://github.com/jacobandreas/psketch.git
fi
cd psketch
git pull
cd $DIR