Created
January 15, 2023 16:48
-
-
Save kiddojazz/4dfe0bbaf84bf8046f7511c5cadbd30b to your computer and use it in GitHub Desktop.
This file contains 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
#Plot the data | |
train = data[:training_data_len] | |
valid = data[training_data_len:] | |
valid["Predictions"] = predictions | |
#Visualize the data | |
plt.figure(figsize=(16,8)) | |
plt.title("Model") | |
plt.xlabel("Data", fontsize=18) | |
plt.ylabel("Close Price USD ($)", fontsize=18) | |
plt.plot(train["Close"]) | |
plt.plot(valid[["Close", "Predictions"]]) | |
plt.legend(["Train", "Val", "Predictions"], loc="lower right") | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment