|
16 | 16 | "\u001b[32mimport \u001b[39m\u001b[36mscala.util.Random\n",
|
17 | 17 | "\n",
|
18 | 18 | "\u001b[39m\n",
|
19 |
| - "\u001b[36mrandom\u001b[39m: \u001b[32mRandom\u001b[39m = scala.util.Random@77cb9c1e" |
| 19 | + "\u001b[36mrandom\u001b[39m: \u001b[32mRandom\u001b[39m = scala.util.Random@50d92c27" |
20 | 20 | ]
|
21 | 21 | },
|
22 | 22 | "execution_count": 1,
|
|
41 | 41 | {
|
42 | 42 | "data": {
|
43 | 43 | "text/plain": [
|
44 |
| - "\u001b[36mweight\u001b[39m: \u001b[32mFloat\u001b[39m = \u001b[32m0.74208564F\u001b[39m\n", |
| 44 | + "\u001b[36mweight\u001b[39m: \u001b[32mFloat\u001b[39m = \u001b[32m0.84711546F\u001b[39m\n", |
45 | 45 | "defined \u001b[32mfunction\u001b[39m \u001b[36mbatch\u001b[39m"
|
46 | 46 | ]
|
47 | 47 | },
|
|
84 | 84 | "output_type": "stream",
|
85 | 85 | "text": [
|
86 | 86 | "SLF4J: Class path contains multiple SLF4J providers.\n",
|
87 |
| - "SLF4J: Found provider [org.slf4j.log4j12.Log4j12ServiceProvider@4e09428c]\n", |
88 |
| - "SLF4J: Found provider [org.slf4j.helpers.NOPServiceProvider@6366d536]\n", |
| 87 | + "SLF4J: Found provider [org.slf4j.log4j12.Log4j12ServiceProvider@5c28b4ee]\n", |
| 88 | + "SLF4J: Found provider [org.slf4j.helpers.NOPServiceProvider@5e804977]\n", |
89 | 89 | "SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.\n",
|
90 |
| - "SLF4J: Actual provider is of type [org.slf4j.log4j12.Log4j12ServiceProvider@4e09428c]\n" |
| 90 | + "SLF4J: Actual provider is of type [org.slf4j.log4j12.Log4j12ServiceProvider@5c28b4ee]\n" |
91 | 91 | ]
|
92 | 92 | },
|
93 | 93 | {
|
94 |
| - "name": "stdout", |
95 |
| - "output_type": "stream", |
96 |
| - "text": [ |
97 |
| - "Training the linear regression model.\n", |
98 |
| - "Train loss at iteration 0 = 1831.6814 (weight = 1.0)\n", |
99 |
| - "Train loss at iteration 1 = 222.29132 (weight = 0.6703382)\n", |
100 |
| - "Train loss at iteration 2 = 17.351349 (weight = 0.76244646)\n", |
101 |
| - "Train loss at iteration 3 = 1.3862652 (weight = 0.736524)\n", |
102 |
| - "Train loss at iteration 4 = 0.10259153 (weight = 0.74354696)\n", |
103 |
| - "Train loss at iteration 5 = 0.0070248283 (weight = 0.74171674)\n", |
104 |
| - "Train loss at iteration 6 = 4.5134925E-4 (weight = 0.74218255)\n", |
105 |
| - "Train loss at iteration 7 = 3.1532058E-5 (weight = 0.7420587)\n", |
106 |
| - "Train loss at iteration 8 = 2.427319E-6 (weight = 0.74209297)\n", |
107 |
| - "Train loss at iteration 9 = 1.7987655E-7 (weight = 0.7420836)\n", |
108 |
| - "Train loss at iteration 10 = 1.3720174E-8 (weight = 0.7420862)\n", |
109 |
| - "Train loss at iteration 11 = 9.51544E-10 (weight = 0.7420855)\n", |
110 |
| - "Train loss at iteration 12 = 4.9631847E-11 (weight = 0.7420857)\n", |
111 |
| - "Train loss at iteration 13 = 1.3894611E-11 (weight = 0.74208564)\n", |
112 |
| - "Train loss at iteration 14 = 0.0 (weight = 0.74208564)\n", |
113 |
| - "Train loss at iteration 15 = 0.0 (weight = 0.74208564)\n", |
114 |
| - "Train loss at iteration 16 = 0.0 (weight = 0.74208564)\n", |
115 |
| - "Train loss at iteration 17 = 0.0 (weight = 0.74208564)\n", |
116 |
| - "Train loss at iteration 18 = 0.0 (weight = 0.74208564)\n", |
117 |
| - "Train loss at iteration 19 = 0.0 (weight = 0.74208564)\n", |
118 |
| - "Train loss at iteration 20 = 0.0 (weight = 0.74208564)\n", |
119 |
| - "Train loss at iteration 21 = 0.0 (weight = 0.74208564)\n", |
120 |
| - "Train loss at iteration 22 = 0.0 (weight = 0.74208564)\n", |
121 |
| - "Train loss at iteration 23 = 0.0 (weight = 0.74208564)\n", |
122 |
| - "Train loss at iteration 24 = 0.0 (weight = 0.74208564)\n", |
123 |
| - "Train loss at iteration 25 = 0.0 (weight = 0.74208564)\n", |
124 |
| - "Trained weight value: 0.74208564\n", |
125 |
| - "True weight value: 0.74208564\n" |
| 94 | + "ename": "", |
| 95 | + "evalue": "", |
| 96 | + "output_type": "error", |
| 97 | + "traceback": [ |
| 98 | + "\u001b[31morg.platanios.tensorflow.jni.NotFoundException: /tmp/tensorflow_scala_native_libraries4907677013344669647/libtensorflow_ops.so: undefined symbol: _ZN10tensorflow14kernel_factory17OpKernelRegistrar12InitInternalEPKNS_9KernelDefEN4absl11string_viewESt10unique_ptrINS0_15OpKernelFactoryESt14default_deleteIS8_EE\u001b[39m\n org.platanios.tensorflow.jni.TensorFlow$.loadOpLibrary(\u001b[32mNative Method\u001b[39m)\n org.platanios.tensorflow.jni.TensorFlow$.$anonfun$load$6(\u001b[32mTensorFlow.scala\u001b[39m:\u001b[32m107\u001b[39m)\n scala.Option.foreach(\u001b[32mOption.scala\u001b[39m:\u001b[32m407\u001b[39m)\n org.platanios.tensorflow.jni.TensorFlow$.load(\u001b[32mTensorFlow.scala\u001b[39m:\u001b[32m107\u001b[39m)\n org.platanios.tensorflow.jni.TensorFlow$.<init>(\u001b[32mTensorFlow.scala\u001b[39m:\u001b[32m155\u001b[39m)\n org.platanios.tensorflow.jni.TensorFlow$.<clinit>(\u001b[32mTensorFlow.scala\u001b[39m:\u001b[32m-1\u001b[39m)\n org.platanios.tensorflow.jni.Graph$.<init>(\u001b[32mGraph.scala\u001b[39m:\u001b[32m22\u001b[39m)\n org.platanios.tensorflow.jni.Graph$.<clinit>(\u001b[32mGraph.scala\u001b[39m:\u001b[32m-1\u001b[39m)\n org.platanios.tensorflow.api.core.Graph$.apply(\u001b[32mGraph.scala\u001b[39m:\u001b[32m902\u001b[39m)\n org.platanios.tensorflow.api.core.package$.<init>(\u001b[32mpackage.scala\u001b[39m:\u001b[32m26\u001b[39m)\n org.platanios.tensorflow.api.core.package$.<clinit>(\u001b[32mpackage.scala\u001b[39m:\u001b[32m-1\u001b[39m)\n org.platanios.tensorflow.api.ops.package$.<init>(\u001b[32mpackage.scala\u001b[39m:\u001b[32m44\u001b[39m)\n org.platanios.tensorflow.api.ops.package$.<clinit>(\u001b[32mpackage.scala\u001b[39m:\u001b[32m-1\u001b[39m)\n org.platanios.tensorflow.api.ops.Op$Builder.<init>(\u001b[32mOp.scala\u001b[39m:\u001b[32m2574\u001b[39m)\n org.platanios.tensorflow.api.ops.basic.Constructors.placeholder(\u001b[32mConstructors.scala\u001b[39m:\u001b[32m396\u001b[39m)\n org.platanios.tensorflow.api.ops.basic.Constructors.placeholder$(\u001b[32mConstructors.scala\u001b[39m:\u001b[32m392\u001b[39m)\n org.platanios.tensorflow.api.package$tf$.placeholder(\u001b[32mpackage.scala\u001b[39m:\u001b[32m294\u001b[39m)\n ammonite.$sess.cmd2$Helper.<init>(\u001b[32mcmd2.sc\u001b[39m:\u001b[32m2\u001b[39m)\n ammonite.$sess.cmd2$.<init>(\u001b[32mcmd2.sc\u001b[39m:\u001b[32m7\u001b[39m)\n ammonite.$sess.cmd2$.<clinit>(\u001b[32mcmd2.sc\u001b[39m:\u001b[32m-1\u001b[39m)" |
126 | 99 | ]
|
127 |
| - }, |
128 |
| - { |
129 |
| - "data": { |
130 |
| - "text/plain": [ |
131 |
| - "\u001b[36minputs\u001b[39m: \u001b[32mOutput\u001b[39m[\u001b[32mFloat\u001b[39m] = \u001b[33mOutput\u001b[39m(Placeholder, \u001b[32m0\u001b[39m)\n", |
132 |
| - "\u001b[36moutputs\u001b[39m: \u001b[32mOutput\u001b[39m[\u001b[32mFloat\u001b[39m] = \u001b[33mOutput\u001b[39m(Placeholder_1, \u001b[32m0\u001b[39m)\n", |
133 |
| - "\u001b[36mweights\u001b[39m: \u001b[32mVariable\u001b[39m[\u001b[32mFloat\u001b[39m] = \u001b[33mVariable\u001b[39m(\n", |
134 |
| - " \u001b[33mDataType\u001b[39m(\u001b[32m\"Float\"\u001b[39m, \u001b[32m1\u001b[39m, \u001b[33mSome\u001b[39m(\u001b[32m4\u001b[39m), DT_FLOAT),\n", |
135 |
| - " \u001b[33mOutput\u001b[39m(weights, \u001b[32m0\u001b[39m),\n", |
136 |
| - " weights/InitializationAssign,\n", |
137 |
| - " \u001b[32mnull\u001b[39m,\n", |
138 |
| - " \u001b[33mOutput\u001b[39m(weights/Read/ReadVariable, \u001b[32m0\u001b[39m)\n", |
139 |
| - ")\n", |
140 |
| - "\u001b[36mpredictions\u001b[39m: \u001b[32mOutput\u001b[39m[\u001b[32mFloat\u001b[39m] = \u001b[33mOutput\u001b[39m(MatMul, \u001b[32m0\u001b[39m)\n", |
141 |
| - "\u001b[36mloss\u001b[39m: \u001b[32mOutput\u001b[39m[\u001b[32mFloat\u001b[39m] = \u001b[33mOutput\u001b[39m(Sum, \u001b[32m0\u001b[39m)\n", |
142 |
| - "\u001b[36mtrainOp\u001b[39m: \u001b[32mUntypedOp\u001b[39m = Minimize/Finish\n", |
143 |
| - "\u001b[36msession\u001b[39m: \u001b[32mSession\u001b[39m = org.platanios.tensorflow.api.core.client.Session@6d50edbb\n", |
144 |
| - "\u001b[36mres2_9\u001b[39m: \u001b[32mimplicits\u001b[39m.\u001b[32mhelpers\u001b[39m.\u001b[32mOutputToTensor\u001b[39m.\u001b[32m<refinement>\u001b[39m.this.type.\u001b[32mV\u001b[39m = \u001b[33mList\u001b[39m()" |
145 |
| - ] |
146 |
| - }, |
147 |
| - "execution_count": 3, |
148 |
| - "metadata": {}, |
149 |
| - "output_type": "execute_result" |
150 | 100 | }
|
151 | 101 | ],
|
152 | 102 | "source": [
|
|
190 | 140 | },
|
191 | 141 | "language_info": {
|
192 | 142 | "codemirror_mode": "text/x-scala",
|
193 |
| - "file_extension": ".scala", |
| 143 | + "file_extension": ".sc", |
194 | 144 | "mimetype": "text/x-scala",
|
195 | 145 | "name": "scala",
|
196 | 146 | "nbconvert_exporter": "script",
|
197 |
| - "version": "2.12.11" |
| 147 | + "version": "2.12.12" |
198 | 148 | }
|
199 | 149 | },
|
200 | 150 | "nbformat": 4,
|
|
0 commit comments