Skip to content

Commit 68cc1c2

Browse files
committed
minor typos
1 parent a806022 commit 68cc1c2

File tree

5 files changed

+20
-43
lines changed

5 files changed

+20
-43
lines changed

AirSimDistributedRL/ExploreAlgorithm.ipynb

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"As you will soon see, the reward function defined here is very basic and doesn't take into account some important parameters. Can you point out some obvious considerations this reward function overlooks?\n",
6060
"\n",
6161
"> **Thought Exercise 1.2:** \n",
62-
"The next time you are out for a drive, take note of how things happening around you on the road (the behavoir of other vehicles and pedestrians, traffic laws, roadsigns etc), the state of your car (your current speed, steering angle, acceleration etc) and your mental state (the urgency of getting to your destination, your overall stress/frustration level etc) result in you making decisions on the road. Reinforcement learning is unique as it is inspired by the behavioral psychology of human beings and animals. If you were to wrtite a reward function for how you drive in real life, what would it look like?\n",
62+
"The next time you are out for a drive, take note of how things happening around you on the road (the behavoir of other vehicles and pedestrians, traffic laws, roadsigns etc), the state of your car (your current speed, steering angle, acceleration etc) and your mental state (the urgency of getting to your destination, your overall stress/frustration level etc) result in you making decisions on the road. Reinforcement learning is unique as it is inspired by the behavioral psychology of human beings and animals. If you were to write a reward function for how you drive in real life, what would it look like?\n",
6363
"\n",
6464
"To compute our reward function, we begin by computing the distance to the center of the nearest road. We then pass that distance through an exponential weighting function to force this portion to the range [0, 1]. The full definition of the reward function can be seen below."
6565
]
@@ -120,7 +120,6 @@
120120
"cell_type": "code",
121121
"execution_count": 5,
122122
"metadata": {
123-
"collapsed": false,
124123
"scrolled": false
125124
},
126125
"outputs": [
@@ -209,9 +208,7 @@
209208
{
210209
"cell_type": "code",
211210
"execution_count": 6,
212-
"metadata": {
213-
"collapsed": false
214-
},
211+
"metadata": {},
215212
"outputs": [
216213
{
217214
"name": "stdout",
@@ -262,9 +259,7 @@
262259
{
263260
"cell_type": "code",
264261
"execution_count": 7,
265-
"metadata": {
266-
"collapsed": false
267-
},
262+
"metadata": {},
268263
"outputs": [
269264
{
270265
"name": "stdout",
@@ -355,7 +350,7 @@
355350
"name": "python",
356351
"nbconvert_exporter": "python",
357352
"pygments_lexer": "ipython3",
358-
"version": "3.6.0"
353+
"version": "3.5.2"
359354
}
360355
},
361356
"nbformat": 4,

AirSimDistributedRL/LaunchLocalTrainingJob.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"cell_type": "markdown",
9494
"metadata": {},
9595
"source": [
96-
"Note that training the model from scratch can take up to 5 days on a powerful GPU. Using pre-trained weights, the model should begin to visibly converge after 3 hours of training. (Stats reported from a GTX 1080)"
96+
"Note that training the model from scratch can take up to 5 days on a powerful GPU. Using pre-trained weights, the model should begin to visibly converge after 3 hours of training. (Stats reported from a NVIDIA Tesla M60)"
9797
]
9898
}
9999
],
@@ -113,7 +113,7 @@
113113
"name": "python",
114114
"nbconvert_exporter": "python",
115115
"pygments_lexer": "ipython3",
116-
"version": "3.6.0"
116+
"version": "3.5.2"
117117
}
118118
},
119119
"nbformat": 4,

AirSimDistributedRL/LaunchTrainingJob.ipynb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@
126126
{
127127
"cell_type": "code",
128128
"execution_count": 7,
129-
"metadata": {
130-
"collapsed": false
131-
},
129+
"metadata": {},
132130
"outputs": [
133131
{
134132
"name": "stdout",
@@ -176,7 +174,7 @@
176174
"\n",
177175
"In each of these folders, a subdirectory will be created with your experiment Id. \n",
178176
"\n",
179-
"If you use remote desktop to connect to the agent machines, you will be able to see the training code drive the vehicle around (be sure to give administrator privileges to run any powershell scripts when prompted).\n",
177+
"If you use remote desktop to connect to the agent machines, you will be able to see the training code drive the vehicle around (be sure to give administrator privileges to run any powershell scripts when prompted). \n",
180178
"\n",
181179
"Training will continue indefinitely. Be sure to let the model train for at least 300,000 iterations. Once the model has trained, download the weights and move on to **[Step 3 - Run the Model](RunModel.ipynb)**."
182180
]
@@ -198,7 +196,7 @@
198196
"name": "python",
199197
"nbconvert_exporter": "python",
200198
"pygments_lexer": "ipython3",
201-
"version": "3.6.0"
199+
"version": "3.5.2"
202200
}
203201
},
204202
"nbformat": 4,

AirSimDistributedRL/RunModel.ipynb

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"cell_type": "code",
4444
"execution_count": 17,
4545
"metadata": {
46-
"collapsed": false,
4746
"scrolled": true
4847
},
4948
"outputs": [
@@ -102,21 +101,9 @@
102101
},
103102
{
104103
"cell_type": "code",
105-
"execution_count": 19,
106-
"metadata": {
107-
"collapsed": false
108-
},
109-
"outputs": [
110-
{
111-
"name": "stdout",
112-
"output_type": "stream",
113-
"text": [
114-
"Connecting to AirSim...\n",
115-
"Waiting for connection: \n",
116-
"Connected!\n"
117-
]
118-
}
119-
],
104+
"execution_count": null,
105+
"metadata": {},
106+
"outputs": [],
120107
"source": [
121108
"print('Connecting to AirSim...')\n",
122109
"car_client = CarClient()\n",
@@ -224,7 +211,7 @@
224211
"name": "python",
225212
"nbconvert_exporter": "python",
226213
"pygments_lexer": "ipython3",
227-
"version": "3.6.0"
214+
"version": "3.5.2"
228215
}
229216
},
230217
"nbformat": 4,

AirSimDistributedRL/SetupCluster.ipynb

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"* **\"batch_job_user_name\"**: Choose a username\n",
3333
"* **\"batch_job_user_password\"**: Choose a password\n",
3434
"* **\"batch_pool_name\"**: Choose a name for your pool of machines\n",
35-
"* **\"batch_pool_size\"**: The total number of virtual machines you want to use in your pool (minimum 2). You will need one machine to act as the parameter server and rest will take on the role of agents. For example, if you want to distribute training across 5 VMs, you will use a batch pool size of 6. \n",
35+
"* **\"batch_pool_size\"**: The total number of virtual machines you want to use in your pool (minimum 2). You will need one machine to act as the parameter server and rest will take on the role of agents. For example, if you want to distribute training across 5 agent VMs, you will use a batch pool size of 6. \n",
3636
"\n",
3737
"Before setting up the cluster, you need to set up an Azure File Share to host the executable and the script files. Let's begin by importing some prerequisite libraries. "
3838
]
@@ -134,16 +134,15 @@
134134
"source": [
135135
"Now that we have all of the prerequisite files generated, the next step is to create the Azure File Share. We create the file share and upload all of the files under the */Share* directory of the downloaded data files. Inside this directory, there are two folders:\n",
136136
"\n",
137-
"* **AirsimOpenGL**: This folder contains the AirSim executable, as well as some helper scripts used to launch the exe.\n",
138-
"* **scripts_downpour**: This folder contains the actual scripts that will be executed during the batch job. For more information about these scripts, see [Step 1 - Explore the Algorithm](ExploreAlgorithm.ipynb)."
137+
"* **data**: This folder contains data files used by the executable. You will explore the uses of these files in [Step 1 - Explore the Algorithm](ExploreAlgorithm.ipynb).\n",
138+
"* **scripts_downpour**: This folder contains the actual scripts that will be executed during the batch job. For more information about these scripts, see [Step 1 - Explore the Algorithm](ExploreAlgorithm.ipynb).\n",
139+
"* **tools**: This folder contains some auxillary tools used to set up the VMs (e.g. [AzCopy](https://docs.microsoft.com/en-us/azure/machine-learning/team-data-science-process/move-data-to-azure-blob-using-azcopy) and [7zip](http://www.7-zip.org/))"
139140
]
140141
},
141142
{
142143
"cell_type": "code",
143144
"execution_count": 25,
144-
"metadata": {
145-
"collapsed": false
146-
},
145+
"metadata": {},
147146
"outputs": [
148147
{
149148
"data": {
@@ -239,9 +238,7 @@
239238
{
240239
"cell_type": "code",
241240
"execution_count": 16,
242-
"metadata": {
243-
"collapsed": false
244-
},
241+
"metadata": {},
245242
"outputs": [
246243
{
247244
"data": {
@@ -330,7 +327,7 @@
330327
"name": "python",
331328
"nbconvert_exporter": "python",
332329
"pygments_lexer": "ipython3",
333-
"version": "3.6.0"
330+
"version": "3.5.2"
334331
}
335332
},
336333
"nbformat": 4,

0 commit comments

Comments
 (0)