Skip to content

Commit b59a8c8

Browse files
committed
smaller model
added scatter plot
1 parent 1d08025 commit b59a8c8

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

RTA_Workshop/ECAL_laser.ipynb

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -279,16 +279,16 @@
279279
"inputLayer = Input(shape=(X_train.shape[1],))\n",
280280
"x = BatchNormalization()(inputLayer)\n",
281281
"#\n",
282-
"x = Dense(100, kernel_initializer='lecun_uniform', name='dense_relu1')(x)\n",
282+
"x = Dense(20, kernel_initializer='lecun_uniform', name='dense_relu1')(x)\n",
283283
"x = BatchNormalization()(x)\n",
284284
"x = Activation(\"relu\")(x)\n",
285285
"#\n",
286-
"x = Dense(50, kernel_initializer='lecun_uniform', name='dense_relu2')(x)\n",
286+
"x = Dense(10, kernel_initializer='lecun_uniform', name='dense_relu2')(x)\n",
287287
"x = BatchNormalization()(x)\n",
288288
"x = Activation(\"relu\")(x)#\n",
289289
"x = Dense(30, kernel_initializer='lecun_uniform', name='dense_relu3')(x)\n",
290290
"#\n",
291-
"x = Dense(10, kernel_initializer='lecun_uniform', name='dense_relu4')(x)\n",
291+
"x = Dense(5, kernel_initializer='lecun_uniform', name='dense_relu4')(x)\n",
292292
"x = BatchNormalization()(x)\n",
293293
"x = Activation(\"relu\")(x)\n",
294294
"#\n",
@@ -359,7 +359,7 @@
359359
"outputs": [],
360360
"source": [
361361
"# true distribution\n",
362-
"plt.plot(TimeY_test,Y_test, label = \"True\")\n",
362+
"plt.scatter(TimeY_test,Y_test, label = \"True\")\n",
363363
"plt.ylabel('Transparency')\n",
364364
"plt.xlabel('Time')\n",
365365
"plt.show()\n",
@@ -373,6 +373,15 @@
373373
"plt.ylim((0.5,1))\n",
374374
"plt.show()\n",
375375
"\n",
376+
"# true distribution\n",
377+
"plt.scatter(TimeY_test,Y_test, label = \"True\", alpha=0.5)\n",
378+
"plt.scatter(TimeY_test,Y_hat, label = \"Predicted\", alpha=0.5)\n",
379+
"plt.ylabel('Transparency')\n",
380+
"plt.xlabel('Time')\n",
381+
"plt.legend()\n",
382+
"plt.ylim((0.5,1))\n",
383+
"plt.show()\n",
384+
"\n",
376385
"\n",
377386
"plt.plot(TimeY_test,Y_test-Y_hat, label = \"Residual\")\n",
378387
"plt.ylabel('Transparency Residual')\n",

0 commit comments

Comments
 (0)