Skip to content

Commit e38d16b

Browse files
committed
even smaller model
added a few plots
1 parent b59a8c8 commit e38d16b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

RTA_Workshop/ECAL_laser.ipynb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,6 @@
279279
"inputLayer = Input(shape=(X_train.shape[1],))\n",
280280
"x = BatchNormalization()(inputLayer)\n",
281281
"#\n",
282-
"x = Dense(20, kernel_initializer='lecun_uniform', name='dense_relu1')(x)\n",
283-
"x = BatchNormalization()(x)\n",
284-
"x = Activation(\"relu\")(x)\n",
285-
"#\n",
286282
"x = Dense(10, kernel_initializer='lecun_uniform', name='dense_relu2')(x)\n",
287283
"x = BatchNormalization()(x)\n",
288284
"x = Activation(\"relu\")(x)#\n",
@@ -370,7 +366,7 @@
370366
"plt.ylabel('Transparency')\n",
371367
"plt.xlabel('Time')\n",
372368
"plt.legend()\n",
373-
"plt.ylim((0.5,1))\n",
369+
"plt.ylim((0.86,0.94))\n",
374370
"plt.show()\n",
375371
"\n",
376372
"# true distribution\n",
@@ -379,13 +375,18 @@
379375
"plt.ylabel('Transparency')\n",
380376
"plt.xlabel('Time')\n",
381377
"plt.legend()\n",
382-
"plt.ylim((0.5,1))\n",
378+
"plt.ylim((0.86,0.94))\n",
383379
"plt.show()\n",
384380
"\n",
385381
"\n",
386382
"plt.plot(TimeY_test,Y_test-Y_hat, label = \"Residual\")\n",
387383
"plt.ylabel('Transparency Residual')\n",
388384
"plt.xlabel('Time')\n",
385+
"plt.show()\n",
386+
"\n",
387+
"plt.plot(TimeY_test,(Y_test-Y_hat)/Y_test*100, label = \"Residual\")\n",
388+
"plt.ylabel('Transparency % Error')\n",
389+
"plt.xlabel('Time')\n",
389390
"plt.show()"
390391
]
391392
},

0 commit comments

Comments
 (0)