()
| 296 | all_mse.append(mse) |
| 297 | |
| 298 | def draw_error(): |
| 299 | yplot = [error_accuracy for i in range(int(n_repeat * 1.2))] |
| 300 | plt.plot(all_mse, "+-") |
| 301 | plt.plot(yplot, "r--") |
| 302 | plt.xlabel("Learning Times") |
| 303 | plt.ylabel("All_mse") |
| 304 | plt.grid(True, alpha=0.5) |
| 305 | plt.show() |
| 306 | |
| 307 | print("------------------Training Complete---------------------") |
| 308 | print((" - - Training epoch: ", rp, f" - - Mse: {mse:.6f}")) |