From 5239866700579937bb1efc6e7b5d8f662302f1b2 Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 17 Mar 2023 12:04:35 -0600 Subject: [PATCH] rm old code after training --- fmda/fmda_rnn_rain.ipynb | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/fmda/fmda_rnn_rain.ipynb b/fmda/fmda_rnn_rain.ipynb index df53776..6262561 100644 --- a/fmda/fmda_rnn_rain.ipynb +++ b/fmda/fmda_rnn_rain.ipynb @@ -637,23 +637,8 @@ "print('x_input.shape=',x_input.shape,'y_output.shape=',y_output.shape)\n", "# print(shift)\n", "m = np.reshape(y_output,hours)\n", - "print('weights=',w)\n", - "if scale:\n", - " print('scaling')\n", - " m = scalery.inverse_transform(m)\n", - "m = np.reshape(m,hours)\n", - "hour=np.array(range(hours))\n", - "title=\"First RNN forecast\"\n", - "plt.figure(figsize=(16,4))\n", - "plt.plot(hour,Ed,linestyle='--',c='r',label='Drying equilibrium')\n", - "plt.plot(hour,Ew,linestyle='--',c='b',label='Wetting equilibrium')\n", - "# print(len(hour),len(m_f))\n", - "plt.scatter(hour,data,c='b',label='data=10-h fuel data')\n", - "if m is not None:\n", - " plt.plot(hour[:h2],m[:h2],linestyle='-',c='k',label='m=filtered')\n", - " plt.plot(hour[h2:hours],m[h2:hours],linestyle='-',c='r',label='m=forecast')\n", - "plt.title(title) \n", - "plt.legend()" + "fitted_data = case_data.copy()\n", + "fitted_data.update({'m':m,'title':\"First RNN forecast\"})" ] }, { -- 2.11.4.GIT