Xlabel and ylabel are not shown

Amirreza Heidari amirrezaheidarysbu at gmail.com
Sat Aug 17 13:58:43 EDT 2019


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)



More information about the Python-list mailing list