Re: Xlabel and ylabel are not shown

2019-08-20 Thread David Lowry-Duda
There are two main ways of creating a plot in matplotlib: the pyplot MATLAB-style system and an object-oriented system. Although many tutorials online use the MATLAB interface, it is usually a good idea to use the object-oriented system. I mention this here because after one calls `plt.plot()`,

Xlabel and ylabel are not shown

2019-08-19 Thread Amirreza Heidari
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\aheida

Re: Xlabel and ylabel are not shown

2019-08-18 Thread Peter Pearson
On Sat, 17 Aug 2019 10:58:43 -0700 (PDT), Amirreza Heidari wrote: > 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 [snip] > plt.legend() > plt.xlabel("Epoche") > plt.ylabel("Mean Squ