【发布时间】:2019-12-23 14:35:32
【问题描述】:
当我使用此代码绘制图表时,我得到了图表,但未显示 x 和 y 标签。
plt.figure(1)
plt.plot(history.history["loss"], "b", label="Mean Square Error of training")
plt.plot(history.history["val_loss"], "g", label="Mean Square Error of validation")
plt.legend()
plt.xlabel("Epoche")
plt.ylabel("Mean Square Error")
plt.xlim(0,200)
plt.show()
plt.savefig(r"C:\Users\aheidari\Dropbox\Dissertation\primary hot water use prediction\Diagrams\UnivariateTrainingerror.png", dpi=1200)
【问题讨论】:
标签: python matplotlib plot