mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 17:34:49 +08:00
Added axes label to the plot
This commit is contained in:
@ -164,6 +164,8 @@ class BPNN():
|
|||||||
self.ax_loss.lines.remove(self.ax_loss.lines[0])
|
self.ax_loss.lines.remove(self.ax_loss.lines[0])
|
||||||
self.ax_loss.plot(self.train_mse, 'r-')
|
self.ax_loss.plot(self.train_mse, 'r-')
|
||||||
plt.ion()
|
plt.ion()
|
||||||
|
plt.xlabel('step')
|
||||||
|
plt.ylabel('loss')
|
||||||
plt.show()
|
plt.show()
|
||||||
plt.pause(0.1)
|
plt.pause(0.1)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user