Skip to content

Commit 07734aa

Browse files
author
Ragav Venkatesan
committed
random seed and typos
1 parent b50c564 commit 07734aa

File tree

2 files changed

+13
-11
lines changed

2 files changed

+13
-11
lines changed

workshop/lec1/dataset.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import matplotlib.pyplot as plt
22
import numpy as np
3+
np.random.seed(42)
34

45
class dataset_generator(object):
56
"""

workshop/lec1/lec1.ipynb

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
{
2929
"cell_type": "code",
3030
"execution_count": null,
31-
"metadata": {},
31+
"metadata": {
32+
"collapsed": true
33+
},
3234
"outputs": [],
3335
"source": [
3436
"from dataset import dataset_generator\n",
@@ -83,7 +85,9 @@
8385
{
8486
"cell_type": "code",
8587
"execution_count": null,
86-
"metadata": {},
88+
"metadata": {
89+
"collapsed": true
90+
},
8791
"outputs": [],
8892
"source": [
8993
"from analytical_solution import regressor\n",
@@ -103,7 +107,9 @@
103107
{
104108
"cell_type": "code",
105109
"execution_count": null,
106-
"metadata": {},
110+
"metadata": {
111+
"collapsed": true
112+
},
107113
"outputs": [],
108114
"source": [
109115
"from errors import rmse\n",
@@ -122,7 +128,9 @@
122128
{
123129
"cell_type": "code",
124130
"execution_count": null,
125-
"metadata": {},
131+
"metadata": {
132+
"collapsed": true
133+
},
126134
"outputs": [],
127135
"source": [
128136
"r.plot(data_train)"
@@ -134,13 +142,6 @@
134142
"source": [
135143
"We can clearly see here that our simple model works pretty fine. Although for this simple linear model an analytical solution does exist, we find that for more complex problem structures we have to rely on some optimization procedures that are described in the later lectures."
136144
]
137-
},
138-
{
139-
"cell_type": "markdown",
140-
"metadata": {},
141-
"source": [
142-
"This notebook was written by Ragav Venkatesan ([email protected]) with material referred from the book 'Convolutional Neural Networks in Visual Computing'. Some of the material might be copyrighted to the author and other copyright holders."
143-
]
144145
}
145146
],
146147
"metadata": {

0 commit comments

Comments
 (0)