Skip to content

Instantly share code, notes, and snippets.

@kiddojazz
Created January 15, 2023 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiddojazz/4dfe0bbaf84bf8046f7511c5cadbd30b to your computer and use it in GitHub Desktop.
Save kiddojazz/4dfe0bbaf84bf8046f7511c5cadbd30b to your computer and use it in GitHub Desktop.
#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