Fix Actual vs Forecast in diagrams, fixes #21

main
Aurélien Geron 2019-08-03 12:11:40 +08:00
parent 281366776f
commit aad780b74b
1 changed files with 2 additions and 2 deletions

View File

@ -473,8 +473,8 @@
" n_steps = X.shape[1]\n",
" ahead = Y.shape[1]\n",
" plot_series(X[0, :, 0])\n",
" plt.plot(np.arange(n_steps, n_steps + ahead), Y_pred[0, :, 0], \"ro-\", label=\"Actual\")\n",
" plt.plot(np.arange(n_steps, n_steps + ahead), Y[0, :, 0], \"bx-\", label=\"Forecast\", markersize=10)\n",
" plt.plot(np.arange(n_steps, n_steps + ahead), Y[0, :, 0], \"ro-\", label=\"Actual\")\n",
" plt.plot(np.arange(n_steps, n_steps + ahead), Y_pred[0, :, 0], \"bx-\", label=\"Forecast\", markersize=10)\n",
" plt.axis([0, n_steps + ahead, -1, 1])\n",
" plt.legend(fontsize=14)\n",
"\n",