Closed 943fansi closed 1 year ago
I am using nbeatsx_example.ipynb, and add some codes as follow:
result jpg https://github.com/943fansi/GuideOfP/blob/main/1.jpg
print(y_true.shape, y_hat.shape, block.shape) plt.plot(range(168, 336), y_true.flatten(), label='Price') plt.plot(range(168, 336), y_hat.flatten(), linestyle='dashed', label='Forecast') plt.axvline(168, color='black') plt.legend() plt.grid() plt.xlabel('Hour') plt.ylabel('Price') plt.figure() print(block.shape, len(block)) plt.plot(range(168, 336), block[:, 0, :].flatten(), linestyle='dashed', label='block Forecast') plt.plot(range(168, 336), block[:, 1, :].flatten(), linestyle='dashed', label='block Forecast') plt.show()```
I am using nbeatsx_example.ipynb, and add some codes as follow:
result jpg https://github.com/943fansi/GuideOfP/blob/main/1.jpg