Skip to content

Instantly share code, notes, and snippets.

@h3ik0th
Created May 15, 2022 15:10
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 h3ik0th/6dd9fdd689fceb8c2e748e44eed359a3 to your computer and use it in GitHub Desktop.
Save h3ik0th/6dd9fdd689fceb8c2e748e44eed359a3 to your computer and use it in GitHub Desktop.
# plot the forecast
plt.figure(100, figsize=(20, 7))
sns.set(font_scale=1.3)
p = sns.lineplot(x = "time", y = "Q50", data = dfY, palette="coolwarm")
sns.lineplot(x = "time", y = "Actual", data = dfY, palette="coolwarm")
plt.legend(labels=["forecast median price Q50", "actual price"])
p.set_ylabel("price")
p.set_xlabel("")
end = ts_tpred.end_time()
p.set_title("energy price until {} (test set + {} hours out-of-sample)".format(end, k));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment