Last active
January 28, 2023 00:46
-
-
Save KenoLeon/a781ff97e5bc5d9d2d6ecd39f5d922bc to your computer and use it in GitHub Desktop.
Keras training validation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from matplotlib import pyplot as plt | |
| def plot_the_loss_curve(epochs, mse): | |
| """Plot a curve of loss vs. epoch.""" | |
| plt.figure() | |
| plt.xlabel("Epoch") | |
| plt.ylabel("Mean Squared Error") | |
| plt.plot(epochs, mse, label="Loss") | |
| plt.legend() | |
| plt.ylim([mse.min() * 0.95, mse.max() * 1.03]) | |
| plt.draw() | |
| plot_the_loss_curve(epochs, rmse) |
Author
Without the specific error it's hard to tell, but if the kernel is dying it could be a memory issue, look into the Numerai docs for parquet versions, older/smaller datasets and/or int8,int16 conversions as they require less memory, these are very old examples and the tournaments have changed considerably so the tutorial might not work anymore.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The kernel keeps dying every time i try to plot the loss curve. tried reducing the batch size, upgrading the conda to freetype 2.10.4, but still it persists. Don't know why it keeps happening. How do I fix it?