nbeatsx icon indicating copy to clipboard operation
nbeatsx copied to clipboard

a big difference between the block prediction value and the final prediction value

Open 943fansi opened this issue 2 years ago • 0 comments

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()```

943fansi avatar Jun 09 '22 07:06 943fansi