Skip to content

Commit de454de

Browse files
committed
Update week7.ipynb
1 parent 9771e6a commit de454de

File tree

1 file changed

+39
-59
lines changed

1 file changed

+39
-59
lines changed

doc/pub/week7/ipynb/week7.ipynb

Lines changed: 39 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
{
44
"cell_type": "markdown",
55
"id": "e00f1a44",
6-
"metadata": {
7-
"editable": true
8-
},
6+
"metadata": {},
97
"source": [
108
"<!-- HTML file automatically generated from DocOnce source (https://github.com/doconce/doconce/)\n",
119
"doconce format html week7.do.txt --no_mako -->\n",
@@ -15,9 +13,7 @@
1513
{
1614
"cell_type": "markdown",
1715
"id": "0521f5b9",
18-
"metadata": {
19-
"editable": true
20-
},
16+
"metadata": {},
2117
"source": [
2218
"# Advanced machine learning and data analysis for the physical sciences\n",
2319
"**Morten Hjorth-Jensen**, Department of Physics and Center for Computing in Science Education, University of Oslo, Norway\n",
@@ -28,9 +24,7 @@
2824
{
2925
"cell_type": "markdown",
3026
"id": "794145b7",
31-
"metadata": {
32-
"editable": true
33-
},
27+
"metadata": {},
3428
"source": [
3529
"## Plans for the week of March 3-7\n",
3630
"\n",
@@ -56,9 +50,7 @@
5650
{
5751
"cell_type": "markdown",
5852
"id": "e5e42fd9",
59-
"metadata": {
60-
"editable": true
61-
},
53+
"metadata": {},
6254
"source": [
6355
"## What is a recurrent NN?\n",
6456
"\n",
@@ -77,9 +69,7 @@
7769
{
7870
"cell_type": "markdown",
7971
"id": "8ea5b91a",
80-
"metadata": {
81-
"editable": true
82-
},
72+
"metadata": {},
8373
"source": [
8474
"## Why RNNs?\n",
8575
"\n",
@@ -99,9 +89,7 @@
9989
{
10090
"cell_type": "markdown",
10191
"id": "6dadec9c",
102-
"metadata": {
103-
"editable": true
104-
},
92+
"metadata": {},
10593
"source": [
10694
"## Basic layout, [Figures from Sebastian Rashcka et al, Machine learning with Sickit-Learn and PyTorch](https://sebastianraschka.com/blog/2022/ml-pytorch-book.html)\n",
10795
"\n",
@@ -115,9 +103,7 @@
115103
{
116104
"cell_type": "markdown",
117105
"id": "f69c94e7",
118-
"metadata": {
119-
"editable": true
120-
},
106+
"metadata": {},
121107
"source": [
122108
"## RNNs in more detail\n",
123109
"\n",
@@ -131,9 +117,7 @@
131117
{
132118
"cell_type": "markdown",
133119
"id": "3e66ff38",
134-
"metadata": {
135-
"editable": true
136-
},
120+
"metadata": {},
137121
"source": [
138122
"## RNNs in more detail, part 2\n",
139123
"\n",
@@ -147,9 +131,7 @@
147131
{
148132
"cell_type": "markdown",
149133
"id": "a485dcbf",
150-
"metadata": {
151-
"editable": true
152-
},
134+
"metadata": {},
153135
"source": [
154136
"## RNNs in more detail, part 3\n",
155137
"\n",
@@ -163,9 +145,7 @@
163145
{
164146
"cell_type": "markdown",
165147
"id": "ea3e2dd7",
166-
"metadata": {
167-
"editable": true
168-
},
148+
"metadata": {},
169149
"source": [
170150
"## RNNs in more detail, part 4\n",
171151
"\n",
@@ -179,9 +159,7 @@
179159
{
180160
"cell_type": "markdown",
181161
"id": "5eed88f5",
182-
"metadata": {
183-
"editable": true
184-
},
162+
"metadata": {},
185163
"source": [
186164
"## RNNs in more detail, part 5\n",
187165
"\n",
@@ -195,9 +173,7 @@
195173
{
196174
"cell_type": "markdown",
197175
"id": "f4dd3d82",
198-
"metadata": {
199-
"editable": true
200-
},
176+
"metadata": {},
201177
"source": [
202178
"## RNNs in more detail, part 6\n",
203179
"\n",
@@ -211,9 +187,7 @@
211187
{
212188
"cell_type": "markdown",
213189
"id": "f2f57990",
214-
"metadata": {
215-
"editable": true
216-
},
190+
"metadata": {},
217191
"source": [
218192
"## RNNs in more detail, part 7\n",
219193
"\n",
@@ -227,9 +201,7 @@
227201
{
228202
"cell_type": "markdown",
229203
"id": "f86b6161",
230-
"metadata": {
231-
"editable": true
232-
},
204+
"metadata": {},
233205
"source": [
234206
"## Backpropagation through time\n",
235207
"\n",
@@ -248,9 +220,7 @@
248220
{
249221
"cell_type": "markdown",
250222
"id": "40adbc7d",
251-
"metadata": {
252-
"editable": true
253-
},
223+
"metadata": {},
254224
"source": [
255225
"## The backward pass is linear\n",
256226
"\n",
@@ -267,9 +237,7 @@
267237
{
268238
"cell_type": "markdown",
269239
"id": "bc9082ba",
270-
"metadata": {
271-
"editable": true
272-
},
240+
"metadata": {},
273241
"source": [
274242
"## The problem of exploding or vanishing gradients\n",
275243
"* What happens to the magnitude of the gradients as we backpropagate through many layers?\n",
@@ -292,9 +260,7 @@
292260
{
293261
"cell_type": "markdown",
294262
"id": "9f380618",
295-
"metadata": {
296-
"editable": true
297-
},
263+
"metadata": {},
298264
"source": [
299265
"## The mathematics of RNNs, the basic architecture\n",
300266
"\n",
@@ -304,12 +270,10 @@
304270
{
305271
"cell_type": "markdown",
306272
"id": "2b6f4cbd",
307-
"metadata": {
308-
"editable": true
309-
},
273+
"metadata": {},
310274
"source": [
311275
"## Four effective ways to learn an RNN and preparing for next week\n",
312-
"1. Long Short Term Memory Make the RNN out of little modules that are designed to remember values for a long time.\n",
276+
"1. Long Short Term Memory Make the RNN out of little modules that are designed to remember values for a long time. We discuss this next week.\n",
313277
"\n",
314278
"2. Hessian Free Optimization: Deal with the vanishing gradients problem by using a fancy optimizer that can detect directions with a tiny gradient but even smaller curvature.\n",
315279
"\n",
@@ -321,9 +285,7 @@
321285
{
322286
"cell_type": "markdown",
323287
"id": "ba57c26d",
324-
"metadata": {
325-
"editable": true
326-
},
288+
"metadata": {},
327289
"source": [
328290
"## Long Short Term Memory (LSTM)\n",
329291
"\n",
@@ -343,7 +305,25 @@
343305
]
344306
}
345307
],
346-
"metadata": {},
308+
"metadata": {
309+
"kernelspec": {
310+
"display_name": "Python 3 (ipykernel)",
311+
"language": "python",
312+
"name": "python3"
313+
},
314+
"language_info": {
315+
"codemirror_mode": {
316+
"name": "ipython",
317+
"version": 3
318+
},
319+
"file_extension": ".py",
320+
"mimetype": "text/x-python",
321+
"name": "python",
322+
"nbconvert_exporter": "python",
323+
"pygments_lexer": "ipython3",
324+
"version": "3.9.15"
325+
}
326+
},
347327
"nbformat": 4,
348328
"nbformat_minor": 5
349329
}

0 commit comments

Comments
 (0)