|
13 | 13 | },
|
14 | 14 | {
|
15 | 15 | "cell_type": "code",
|
16 |
| - "execution_count": 2, |
| 16 | + "execution_count": 1, |
17 | 17 | "metadata": {},
|
18 |
| - "outputs": [], |
| 18 | + "outputs": [ |
| 19 | + { |
| 20 | + "name": "stdout", |
| 21 | + "output_type": "stream", |
| 22 | + "text": [ |
| 23 | + "\n", |
| 24 | + "WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.\n", |
| 25 | + "For more information, please see:\n", |
| 26 | + " * https://github.com/tensorflow/community/blob/master/rfcs/20180907-contrib-sunset.md\n", |
| 27 | + " * https://github.com/tensorflow/addons\n", |
| 28 | + "If you depend on functionality not listed there, please file an issue.\n", |
| 29 | + "\n" |
| 30 | + ] |
| 31 | + } |
| 32 | + ], |
19 | 33 | "source": [
|
20 | 34 | "import tensorflow as tf\n",
|
21 | 35 | "import numpy as np\n",
|
|
26 | 40 | },
|
27 | 41 | {
|
28 | 42 | "cell_type": "code",
|
29 |
| - "execution_count": 3, |
| 43 | + "execution_count": 15, |
30 | 44 | "metadata": {},
|
31 | 45 | "outputs": [
|
32 | 46 | {
|
|
38 | 52 | }
|
39 | 53 | ],
|
40 | 54 | "source": [
|
41 |
| - "xy = np.loadtxt('data-04-zoo.csv', delimiter=',', dtype=np.float32)\n", |
| 55 | + "xy = np.loadtxt('data-04-zoo.csv', delimiter=',', dtype=np.int32) #tf1.13.1에서는 np.int32, 이전에는 np.float32\n", |
42 | 56 | "x_data = xy[:, 0:-1]\n",
|
43 | 57 | "y_data = xy[:, [-1]]\n",
|
44 | 58 | "\n",
|
|
137 | 151 | "display_name": "Python 3",
|
138 | 152 | "language": "python",
|
139 | 153 | "name": "python3"
|
| 154 | + }, |
| 155 | + "language_info": { |
| 156 | + "codemirror_mode": { |
| 157 | + "name": "ipython", |
| 158 | + "version": 3 |
| 159 | + }, |
| 160 | + "file_extension": ".py", |
| 161 | + "mimetype": "text/x-python", |
| 162 | + "name": "python", |
| 163 | + "nbconvert_exporter": "python", |
| 164 | + "pygments_lexer": "ipython3", |
| 165 | + "version": "3.6.5" |
140 | 166 | }
|
141 | 167 | },
|
142 | 168 | "nbformat": 4,
|
|
0 commit comments