MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / plot_loss

Method plot_loss

neural_network/back_propagation_neural_network.py:166–174  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

164 return self.loss, self.loss_gradient
165
166 def plot_loss(self):
167 if self.ax_loss.lines:
168 self.ax_loss.lines.remove(self.ax_loss.lines[0])
169 self.ax_loss.plot(self.train_mse, "r-")
170 plt.ion()
171 plt.xlabel("step")
172 plt.ylabel("loss")
173 plt.show()
174 plt.pause(0.1)
175
176
177def example():

Callers 1

trainMethod · 0.95

Calls 3

plotMethod · 0.80
showMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected