Why you use matpl`otlib to plot figure get results like [
] instead of figure in jupyter notebook?
you need to add a code line %matplotlib inline before your code
%matplotlib inline import matplotlib.pyplot as plt plt.figure() #预测OT plt.plot(prediction[-1,:,-1])#由于prediction.shape是[1,24,7]那么batch只有1 索引只能是0或-1 都是代表batch这一维本身 print(prediction.shape) plt.show() plt.plot(prediction[0,:,-1])#没问题 print(prediction.shape) plt.show() # draw HUFL prediction plt.plot(prediction[0,:,0])#没问题 print(prediction.shape) plt.show()



