Skip to content

Commit 62e33eb

Browse files
committed
Fixed warnings
1 parent 064a9e3 commit 62e33eb

File tree

1 file changed

+23
-25
lines changed

1 file changed

+23
-25
lines changed

ch10_rnn/Concept02_rnn.ipynb

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,9 @@
2323
},
2424
{
2525
"cell_type": "code",
26-
"execution_count": 1,
26+
"execution_count": 2,
2727
"metadata": {},
28-
"outputs": [
29-
{
30-
"name": "stderr",
31-
"output_type": "stream",
32-
"text": [
33-
"/Users/anastasiia/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.\n",
34-
" from ._conv import register_converters as _register_converters\n"
35-
]
36-
}
37-
],
28+
"outputs": [],
3829
"source": [
3930
"import numpy as np\n",
4031
"import tensorflow as tf\n",
@@ -50,7 +41,7 @@
5041
},
5142
{
5243
"cell_type": "code",
53-
"execution_count": 2,
44+
"execution_count": 3,
5445
"metadata": {},
5546
"outputs": [],
5647
"source": [
@@ -119,35 +110,35 @@
119110
},
120111
{
121112
"cell_type": "code",
122-
"execution_count": 3,
113+
"execution_count": 4,
123114
"metadata": {},
124115
"outputs": [
125116
{
126117
"name": "stdout",
127118
"output_type": "stream",
128119
"text": [
129-
"0 96.78678\n",
130-
"100 61.329662\n",
131-
"200 18.419907\n",
132-
"300 7.646343\n",
133-
"400 4.7979555\n",
134-
"500 3.2019987\n",
135-
"600 2.2661102\n",
136-
"700 1.6707231\n",
137-
"800 1.2424115\n",
138-
"900 0.9125628\n",
120+
"0 103.46295\n",
121+
"100 63.418705\n",
122+
"200 23.072838\n",
123+
"300 11.47684\n",
124+
"400 7.195353\n",
125+
"500 4.4564924\n",
126+
"600 2.8910196\n",
127+
"700 1.948163\n",
128+
"800 1.3193887\n",
129+
"900 0.88628125\n",
139130
"Model saved to model.ckpt\n",
140131
"INFO:tensorflow:Restoring parameters from ./model.ckpt\n",
141132
"\n",
142133
"Lets run some tests!\n",
143134
"\n",
144135
"When the input is [[1], [2], [3], [4]]\n",
145136
"The ground truth output should be [[1], [3], [5], [7]]\n",
146-
"And the model thinks it is [1.037468 2.519481 4.514736 6.729595]\n",
137+
"And the model thinks it is [0.86705637 2.7930977 5.307706 7.302184 ]\n",
147138
"\n",
148139
"When the input is [[4], [5], [6], [7]]\n",
149140
"The ground truth output should be [[4], [9], [11], [13]]\n",
150-
"And the model thinks it is [ 4.5689063 9.189994 11.679442 12.760409 ]\n",
141+
"And the model thinks it is [ 4.0726233 9.083956 11.937489 12.943668 ]\n",
151142
"\n"
152143
]
153144
}
@@ -176,6 +167,13 @@
176167
" print(\"The ground truth output should be {}\".format(actual_y[i]))\n",
177168
" print(\"And the model thinks it is {}\\n\".format(pred_y[i]))"
178169
]
170+
},
171+
{
172+
"cell_type": "code",
173+
"execution_count": null,
174+
"metadata": {},
175+
"outputs": [],
176+
"source": []
179177
}
180178
],
181179
"metadata": {

0 commit comments

Comments
 (0)