|
23 | 23 | },
|
24 | 24 | {
|
25 | 25 | "cell_type": "code",
|
26 | | - "execution_count": 1, |
| 26 | + "execution_count": 2, |
27 | 27 | "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": [], |
38 | 29 | "source": [
|
39 | 30 | "import numpy as np\n",
|
40 | 31 | "import tensorflow as tf\n",
|
|
50 | 41 | },
|
51 | 42 | {
|
52 | 43 | "cell_type": "code",
|
53 | | - "execution_count": 2, |
| 44 | + "execution_count": 3, |
54 | 45 | "metadata": {},
|
55 | 46 | "outputs": [],
|
56 | 47 | "source": [
|
|
119 | 110 | },
|
120 | 111 | {
|
121 | 112 | "cell_type": "code",
|
122 | | - "execution_count": 3, |
| 113 | + "execution_count": 4, |
123 | 114 | "metadata": {},
|
124 | 115 | "outputs": [
|
125 | 116 | {
|
126 | 117 | "name": "stdout",
|
127 | 118 | "output_type": "stream",
|
128 | 119 | "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", |
139 | 130 | "Model saved to model.ckpt\n",
|
140 | 131 | "INFO:tensorflow:Restoring parameters from ./model.ckpt\n",
|
141 | 132 | "\n",
|
142 | 133 | "Lets run some tests!\n",
|
143 | 134 | "\n",
|
144 | 135 | "When the input is [[1], [2], [3], [4]]\n",
|
145 | 136 | "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", |
147 | 138 | "\n",
|
148 | 139 | "When the input is [[4], [5], [6], [7]]\n",
|
149 | 140 | "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", |
151 | 142 | "\n"
|
152 | 143 | ]
|
153 | 144 | }
|
|
176 | 167 | " print(\"The ground truth output should be {}\".format(actual_y[i]))\n",
|
177 | 168 | " print(\"And the model thinks it is {}\\n\".format(pred_y[i]))"
|
178 | 169 | ]
|
| 170 | + }, |
| 171 | + { |
| 172 | + "cell_type": "code", |
| 173 | + "execution_count": null, |
| 174 | + "metadata": {}, |
| 175 | + "outputs": [], |
| 176 | + "source": [] |
179 | 177 | }
|
180 | 178 | ],
|
181 | 179 | "metadata": {
|
|
0 commit comments