Skip to content

Commit 27fefae

Browse files
committed
update title plots
1 parent 615b074 commit 27fefae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

stock_prediction_plotter.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def plot_loss(self, history):
4848
plt.plot(history.history['val_loss'], label='val_loss')
4949
plt.xlabel('Epoch')
5050
plt.ylabel('Loss')
51+
plt.title('Loss/Validation Loss')
5152
plt.legend(loc='upper right')
5253
plt.savefig(os.path.join(self.project_folder, 'loss.png'))
5354
plt.pause(0.001)
@@ -59,6 +60,7 @@ def plot_mse(self, history):
5960
plt.plot(history.history['val_MSE'], label='val_MSE')
6061
plt.xlabel('Epoch')
6162
plt.ylabel('MSE')
63+
plt.title('MSE/Validation MSE')
6264
plt.legend(loc='upper right')
6365
plt.savefig(os.path.join(self.project_folder, 'MSE.png'))
6466
plt.pause(0.001)
@@ -72,6 +74,7 @@ def project_plot_predictions(self, price_predicted, test_data):
7274
plt.xlabel('Time')
7375
plt.ylabel('Price [' + self.currency + ']')
7476
plt.legend()
77+
plt.title('Prediction')
7578
plt.savefig(os.path.join(self.project_folder, self.short_name.strip().replace('.', '') + '_prediction.png'))
7679
plt.pause(0.001)
7780
plt.show(block=self.blocking)

0 commit comments

Comments
 (0)