Created
April 14, 2020 21:55
-
-
Save piEsposito/a5c7b53116ede6f323bcc1c08fae369a to your computer and use it in GitHub Desktop.
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
params = {"ytick.color" : "w", | |
"xtick.color" : "w", | |
"axes.labelcolor" : "w", | |
"axes.edgecolor" : "w"} | |
plt.rcParams.update(params) | |
plt.title("IBM Stock prices", color="white") | |
plt.plot(df_pred.index, | |
df_pred.Close, | |
color='black', | |
label="Real") | |
plt.plot(idx_pred, | |
pred_mean_unscaled, | |
label="Prediction for {} days, than consult".format(future_length), | |
color="red") | |
plt.fill_between(x=idx_pred, | |
y1=upper_bound_unscaled[:,0], | |
y2=lower_bound_unscaled[:,0], | |
facecolor='green', | |
label="Confidence interval", | |
alpha=0.5) | |
plt.legend() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment